TensorFlow v2 Examples
*** More examples to be added later... ***
0 - Prerequisite
1 - Introduction
- Hello World (notebook). Very simple example to learn how to print "hello world" using TensorFlow v2.
- Basic Operations (notebook). A simple example that cover TensorFlow v2 basic operations.
2 - Basic Models
- Linear Regression (notebook). Implement a Linear Regression with TensorFlow v2.
- Logistic Regression (notebook). Implement a Logistic Regression with TensorFlow v2.
3 - Neural Networks
Supervised
- Simple Neural Network (notebook). Use TensorFlow v2 '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 v2 'layers' and 'model' API to build a convolutional neural network to classify MNIST digits dataset.
- Convolutional Neural Network (low-level) (notebook). Raw implementation of a convolutional neural network to classify MNIST digits dataset.
Unsupervised
- Auto-Encoder (notebook). Build an auto-encoder to encode an image to a lower dimension and re-construct it.
- DCGAN (Deep Convolutional Generative Adversarial Networks) (notebook). Build a Deep Convolutional Generative Adversarial Network (DCGAN) to generate images from noise.
4 - Utilities
- Save and Restore a model (notebook). Save and Restore a model with TensorFlow v2.
- Build Custom Layers & Modules (notebook). Learn how to build your own layers / modules and integrate them into TensorFlow v2 Models.
Installation
To install TensorFlow v2, simply run:
pip install tensorflow==2.0.0a0
or (if you want GPU support):
pip install tensorflow_gpu==2.0.0a0