Created
September 13, 2018 22:03
-
-
Save SkalskiP/6a99acbba953fcfdeb8e29291ffebba5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Adding callback functions that will run on each epoch | |
| testmodelcb = keras.callbacks.LambdaCallback(on_epoch_end=save_model_prediction_graph) | |
| # Compilation of the model | |
| model.compile(loss='binary_crossentropy', optimizer='adamax', metrics=['accuracy']) | |
| # Model training | |
| model.fit(X_train, y_train, epochs=N_EPOCHS, verbose=0, callbacks=[testmodelcb]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment