Skip to content

Instantly share code, notes, and snippets.

@AkiyonKS
Created August 9, 2022 05:05
Show Gist options
  • Save AkiyonKS/67eec00badbd9ddc927b1288a94d1741 to your computer and use it in GitHub Desktop.
Save AkiyonKS/67eec00badbd9ddc927b1288a94d1741 to your computer and use it in GitHub Desktop.
_, baseline_model_accuracy = model.evaluate(
X_test, y_test, verbose=1)
print('Baseline test accuracy:', baseline_model_accuracy)
_, keras_file = tempfile.mkstemp('.h5')
tf.keras.models.save_model(model, keras_file, include_optimizer=False)
print('Saved baseline model to:', keras_file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment