title: Python/Keras - accessing ModelCheckpoint callback
body: <p>I'm using Keras to predict a time series. As standard I'm using 20 epochs. I want to know what did my neural network predict for each one of the 20 epochs.</p>
  
  <p>By using model.predict I get the last prediction. However I want all predictions, or at least the last 10 ones (which have acceptable error levels).</p>
  
  <p>To access that I'm trying the ModelCheckpoint function from Keras, however I'm having trouble to access it afterwards. I'm using the following code:</p>
  
  <pre><code>model=Sequential()
  
  model.add(GRU(input_dim=col,init='uniform',output_dim=20))
  model.add(Dense(10))
  model.add(Dense(5))
  model.add(Activation("softmax"))
  model.add(Dense(1))
  
  model.compile(loss="mae", optimizer="RMSprop")
  
  checkpoint=ModelCheckpoint(filepath='/Users/Alex/checkpoint.hdf5')
  
  model.fit(X=predictor_train, y=target_train, nb_epoch=20, batch_size=batch,validation_split=0.1) #best validation split at 0.1
  model.evaluate(X=predictor_train, y=target_train,batch_size=batch,show_accuracy=True)
  
  print checkpoint
  </code></pre>
  
  <p>Objectively, my questions are:</p>
  
  <ul>
  <li><p>I expected that after running the code I would find a file named checkpoint.hdf5 inside the folder /Users/Alex, however I didn't. What am I missing?</p></li>
  <li><p>When I print <code>checkpoint</code> out what I get is a <code>keras.callbacks.ModelCheckpoint object at 0x117471290</code>. Is there a way to print what I want? How would the code look like?</p></li>
  </ul>
  
  <p>Your help is very much appreciated :)</p>