Skip to content

Instantly share code, notes, and snippets.

@securetorobert
Last active July 15, 2018 21:47
Show Gist options
  • Save securetorobert/9b87c7c7abd317153ac13f7f20a95d83 to your computer and use it in GitHub Desktop.
Save securetorobert/9b87c7c7abd317153ac13f7f20a95d83 to your computer and use it in GitHub Desktop.
Evaluate the l1 regularized model
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