Last active
July 15, 2018 21:47
-
-
Save securetorobert/9b87c7c7abd317153ac13f7f20a95d83 to your computer and use it in GitHub Desktop.
Evaluate the l1 regularized model
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_result = estimator.evaluate(input_fn=lambda: input_fn(X_train, y_train)) | |
print("Training results") | |
for key in evaluate_result: | |
print(" {}, was: {}".format(key, evaluate_result[key])) | |
evaluate_result = estimator.evaluate(input_fn=lambda: input_fn(X_test, y_test)) | |
print("Training 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