Guest User

Untitled

a guest
Jun 19th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. epochs = 10
  2. model.fit_generator(datagen.flow(x_train, y_train,
  3. batch_size=batch_size),
  4. epochs=epochs,
  5. validation_data=(x_test, y_test))
  6.  
  7. model_name='cifar-10-cnn-'+str(epochs)
  8. model.save(model_path+'/'+model_name+'.hd5') # Keras model
  9. print("Saved Keras model")
Add Comment
Please, Sign In to add comment