First Steps with TensorFlow

First Steps with TensorFlow

Hierarchy of TensorFlow toolkits. Estimator API is at the top.
import tensorflow as tf

# Set up a linear classifier.
classifier = tf.estimator.LinearClassifier(feature_columns)

# Train the model on some example data.
classifier.train(input_fn=train_input_fn, steps=2000)

# Use it to predict.
predictions = classifier.predict(input_fn=predict_input_fn)

Send feedback about...

Machine Learning Crash Course