Good evening/morning wherever you are
I’m trying to submit my first predictions on Dogs and Cats competition on Kaggle and for that I followed Lesson 2, essentially the parts that uses Vgg16 and manually fine-tunes it (dropping the last layer, and retraining a new dense final layer).
The only thing I change from the lesson2 notebook is actually using
Fitting the model, I get for the first run, this :
Epoch 1/1 23000/23000 [==============================] - 1319s - loss: 0.2024 - acc: 0.9634 - val_loss: 0.1202 - val_acc: 0.9800
Then that :
Epoch 1/1 23000/23000 [==============================] - 1319s - loss: 0.2315 - acc: 0.9652 - val_loss: 0.1205 - val_acc: 0.9810
First, I find it strange that my loss is actually going up when learning more from the second epoch… But overall losses are reasonable (0.2ish is a good starting point I guess).
And when I submit my predictions (using
predict_generator() which I’m afraid makes troubles but I have memory issues so thought it was my only solution), my Kaggle loss is very poor : 1.51952.
Is there something obvious I’m missing here in the pipeline? Hopefully you can give me some hints.
Good evening, thanks for your help,