Created
July 15, 2018 10:45
-
-
Save securetorobert/6e2db569d2d2be51fb54de9af3330379 to your computer and use it in GitHub Desktop.
Evaluate a DNNClassifer on iris dataset
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
# Evaluate our model using the examples contained in FILE_TEST | |
# Return value will contain evaluation_metrics such as: loss & average_loss | |
evaluate_result = estimator.evaluate( | |
input_fn=lambda: my_input_fn(FILE_TEST, False, 4) | |
print("Evaluation results") | |
for key in evaluate_result: | |
print(" {}, was: {}".format(key, evaluate_result[key])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment