Skip to content

Instantly share code, notes, and snippets.

@crawles
Created March 5, 2019 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crawles/9fba32dbffd61f9a6bf4ac99787c4d2f to your computer and use it in GitHub Desktop.
Save crawles/9fba32dbffd61f9a6bf4ac99787c4d2f to your computer and use it in GitHub Desktop.
linear_est = tf.estimator.LinearClassifier(feature_columns)
# Train model.
linear_est.train(train_input_fn, max_steps=100)
# Evaluation.
result = linear_est.evaluate(eval_input_fn)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment