Skip to content

Instantly share code, notes, and snippets.

@hadifar
Last active January 5, 2019 15:22
Show Gist options
  • Save hadifar/5014e7bb0ab50bc84554abbe279bb5fa to your computer and use it in GitHub Desktop.
Save hadifar/5014e7bb0ab50bc84554abbe279bb5fa to your computer and use it in GitHub Desktop.
model_estimator = tf.estimator.Estimator(model_fn=model_fn, model_dir='./tmp/')
model_estimator.train(train_input_fn, max_steps=5000)
result = model_estimator.evaluate(test_input_fn)
print(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment