TensorFlow learn
Just as Scikit-Learn is a convenient interface to traditional machine learning algorithms, tf.contrib.learn
(https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/learn/python/learn), formerly known as skflow
, it is a simplified interface to build and train DNNs. Now it comes free with every installation of TensorFlow!
Even if you're not a fan of the syntax, it's worth looking at TensorFlow Learn as the high-level API to TensorFlow. This is because it's currently the only officially supported one. But, you should know that there are many alternative high-level APIs that may have more intuitive interfaces. If interested, refer to Keras (https://keras.io/), tf.slim
(included with TF), to learn more about TensorFlow-Slim refer to https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/slim or TFLearn (http://tflearn.org/).
Setup
To get started with TensorFlow Learn, you only need to import it. We'll also import the estimators...