Skip to content

Instantly share code, notes, and snippets.

@ivankristianto
Last active October 15, 2020 03:36
Show Gist options
  • Save ivankristianto/afb051b1e61c6ec29d1c543b486e9513 to your computer and use it in GitHub Desktop.
Save ivankristianto/afb051b1e61c6ec29d1c543b486e9513 to your computer and use it in GitHub Desktop.
TensorFlow How to Start

TensorFlow How to Start

Free Cloud Computational Power (Powerful enough for education without local setup hassle):

Local Setup:

I recommend to setup environment with Python 3.6: conda create -n tensorflow python=3.6 anaconda Once you use python 3.6, do not upgrade or downgrade it. If you want to use different python version, create different environment. I learn this in a hard way.

Setup Jupyter Notebook:

Add conda environment to Jupyter Notebook:

https://medium.com/@nrk25693/how-to-add-your-conda-environment-to-your-jupyter-notebook-in-just-4-steps-abeab8b8d084

Setup TensorFlow in Python

Current tensorflow stable version is 2.3.1, which has a lot if improvement over 2.1.0 and some breaking changes. A lot of things working now without workaround.

Setup TensorFlow CPU (Relative Easy):

Setup TensorFlow GPU (Currently only support NVidia GPU):

Setup TensorFlowJS Converter

TensorFlow JS

We can train tensorflow model in JavaScript, or deploy the model to web for production use. Current tfjs version is 2.0.0 and has breaking change with 1.7.x. But the best thing with this 2.0.0 we can choose the backend between webgl, cpu or wasm. And wasm is the faster for smaller size model.

TensorFlow JS Code Examples:

TensorFlow JS Node (if you want to use nodejs to do the training):

Free Online course:

  1. Intro to TensorFlow for Deep Learning: https://classroom.udacity.com/courses/ud187/
  2. Machine Learning Foundations: https://www.youtube.com/playlist?list=PLOU2XLYxmsII9mzQ-Xxug4l2o04JBrkLV
  3. Machine Learning Recipes with Josh Gordon: https://www.youtube.com/playlist?list=PLOU2XLYxmsIIuiBfYad6rFYQU_jL2ryal
  4. Coding TensorFlow: https://www.youtube.com/playlist?list=PLQY2H8rRoyvwLbzbnKJ59NkZvQAW9wLbx
  5. Natural Language Processing (NLP) Zero to Hero: https://www.youtube.com/playlist?list=PLQY2H8rRoyvzDbLUZkbudP-MFQZwNmU4S

Datasets and lots of sample:

My Code Samples and Presentation:

Resources:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment