This is a record of my practice in moving from formal courses and independent study in machine learning to using TensorFlow on my own.
-
I am using a Dell XPS-13 9370 Developer Edition laptop
with Ubuntu 18.04.1 LTS installed. [This machine has an
Thunderbolt 3 usb C port and an external NVIDIA GTX 1070Ti
GPU in an Alito Node Pro enclosure] -
I also use an Alienware 15 laptop running both
Linux Mint 18.3 and Windows 10. [This machine has an
internal NVIDIA GTX 1070 GPU] -
FYI: For the time being I’m using the CPU-only versions
of TensorFlow. -
I downloaded the latest anaconda linux distribution for python 3.7 from: https://www.anaconda.com/download/#linux
first install the latest anaconda python 3.7 or whatever, open a terminal, and update your “base” environment
$ conda update conda
$ conda update --all
create new environment called “tensorFlow” (note this name can be anything … I use a capital ‘F’) which has the latest tensorflow and the compatible versions of python along with the compatible versions of anaconda (numpy, matplotlib, scikits …)
$ conda conda create -n tensorFlow python=3.6 anaconda
$ conda activate tensorFlow
$ conda install tensorflow
$ conda install keras
$ conda update --all
$ conda deactivate
$ conda info -e
$ conda env remove --name tensorFlow
$ conda activate tensorFlow
$ jupyter notebook
a new web browser page will open, if not open a browser and point to the URL displayed in this terminal
^c^c
In the main jupyter notebook web page you can browse your file system for a specific jupyter notebook to work on.
Start up TensorBoard to to look at the workings of your TensorFlow computation graph, perhaps a deep neural network
$ conda activate tensorFlow
$ tensorboard --logdir=./tmp/example --port=8002 --reload_interval=5
“./tmp/example” is the path to the folder containing your tensorboard log files … we’ll see more about this in the code examples
http://localhost:8002/
This project is licensed under the MIT License. Please read LICENSE.md for details
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Stephen Brown - Initial work - MIT
See also the list of contributors who participated in this project.
- Hat tips to everyone whose code I use.
- Inspiration from:
- Andrew Ng’s excellent courses on machine learning:
- for my own first trials I read blogs with nice examples, such as:
- In trying to get up to speed in tensorflow beyond Andrew Ng’s homework, I found I just wasn’t quite comfortable with some of the new obscure programming syntax. So, I took this class by Jose Portilla:
- https://www.udemy.com/complete-guide-to-tensorflow-for-deep-learning-with-python, in which I particularly liked the exercise of building a tiny tensorflow yourself using some object-oriented programming.
- This really confused me at first as this is a new world for me (I have found myself using classes in python before without really understanding them), so I had to step aside and study OOP a bit:
- first by looking at this helpful blog for a gentle intro to inheritance:
- then buying and reading the first part of this book
- In the end I conclude that this side trip was well worth it!
- Now I feel like I understand how the computation graphs are built and stored and just what the weird tensorflow syntax of creating and running sessions is really doing! Yay!
Written with StackEdit.