Skip to content

Instantly share code, notes, and snippets.

@crawles
Created March 5, 2019 02:16
Show Gist options
  • 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