Even if you don't want to buy the course (although it's worth it's price). You can play with Tensorflow yourself using jupyter notebook. So here are a simple steps to make it possible (note: not all packages mentioned in step 4 are necessary. It's just convenient to have them when doing real projects)
- First install Anaconda python distribution with Anacaonda installer docs for your OS
- Create new conda environment with:
conda create -n tensorflow python=3.5
where tensorflow is your env name - Activate tensorflow env with:
source activate tensorflow
(Linux and OSX)
or
activate tensorflow
(Windows) - From terminal install conda packages with:
conda install jupyter
conda install numpy
conda install pandas
conda install scikit-learn
conda install matplotlib
conda install tensorflow
(or conda install -c conda-forge tensorflow) - Run Jupyter Notebook using:
jupyter notebook
Finally you can test your environment in Jupyter inserting few commands in a new book.
So after browser shows jupter dir structure press 'new' and select Python 3. In a new document start typing:
import tensorflow as tf
and press shift+enter to run the code.
No error should appear. Then do the same with lines:
hello = tf.constant("Hello World")
sess = tf.Session()
print(sess.run(hello))
If everything went well you should see something like on the screenshot below.
So after browser shows jupter dir structure press 'new' and select Python 3. In a new document start typing:
import tensorflow as tf
and press shift+enter to run the code.
No error should appear. Then do the same with lines:
hello = tf.constant("Hello World")
sess = tf.Session()
print(sess.run(hello))
If everything went well you should see something like on the screenshot below.
Jupyter Notebook with tensorflow |
No comments:
Post a Comment