title: Not able to predict output in fastai
body: <p>Noob here.</p>
  
  <p>Here's the dataset that I'm working on <a href="https://www.kaggle.com/arpitjain007/game-of-deep-learning-ship-datasets" rel="nofollow noreferrer">https://www.kaggle.com/arpitjain007/game-of-deep-learning-ship-datasets</a></p>
  
  <p>and I'm using fastai, I've successfully built the model but I have no idea how to test it with 'test.csv' file.</p>
  
  <p>Here's my code</p>
  
  <pre><code>from fastai import *
  from fastai.vision import *
  
  path = '../input/train'
  path = Path(path)
  path.ls()
  df = pd.read_csv(path/'train.csv')
  data = ImageDataBunch.from_df('../input/train/images', df, ds_tfms=get_transforms(), size=224, bs=64 ).normalize(imagenet_stats)
  learn = cnn_learner(data, models.resnet50, metrics=accuracy,  model_dir='/kaggle/working/models')
  learn.fit_one_cycle(5)
  df_test = pd.read_csv('../input/test_ApKoW4T.csv')
  </code></pre>
  
  <p>I don't know how to use the Test Dataframe to predict. </p>