TensorFlow Examples
This tutorial was designed for easily diving into TensorFlow, through examples. For readability, it includes both notebooks and source codes with explanation, for both TF v1 & v2.
It is suitable for beginners who want to find clear and concise examples about TensorFlow. Besides the traditional 'raw' TensorFlow implementations, you can also find the latest TensorFlow API practices (such as layers, estimator, dataset, ...).
Update (05/16/2020): Moving all default examples to TF2. For TF v1 examples: check here.
Tutorial index
0 - Prerequisite
1 - Introduction
- Hello World (notebook). Very simple example to learn how to print "hello world" using TensorFlow 2.0+.
- Basic Operations (notebook). A simple example that cover TensorFlow 2.0+ basic operations.
2 - Basic Models
- Linear Regression (notebook). Implement a Linear Regression with TensorFlow 2.0+.
- Logistic Regression (notebook). Implement a Logistic Regression with TensorFlow 2.0+.
- Word2Vec (Word Embedding) (notebook). Build a Word Embedding Model (Word2Vec) from Wikipedia data, with TensorFlow 2.0+.
- GBDT (Gradient Boosted Decision Trees) (notebooks). Implement a Gradient Boosted Decision Trees with TensorFlow 2.0+ to predict house value using Boston Housing dataset.
3 - Neural Networks
Supervised
- Simple Neural Network (notebook). Use TensorFlow 2.0 'layers' and 'model' API to build a simple neural network to classify MNIST digits dataset.
- Simple Neural Network (low-level) (notebook). Raw implementation of a simple neural network to classify MNIST digits dataset.
- Convolutional Neural Network (notebook). Use TensorFlow 2.0+ 'layers' and 'model' API to build a convolutional neural network to classify MNIST digits dataset.