Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 1.98 KB

README.md

File metadata and controls

71 lines (48 loc) · 1.98 KB

TensorFlow-Keras-Tutorial

Hands-on programming tutorial for TensorFlow and Keras

Presentation chart here: http://bit.ly/2Flgnnp

TensorFlow programming exercises:

  1. TF-00-ReadData.py
    Start your python basic program and load the data.

  2. TF-01-Placeholders.py
    Define Placeholder for input: image and label.

  3. TF-02-VariableFunctions.py
    Define Variables for model.

  4. TF-03-ModelLossOptimizer.py
    Define Loss function and Optimizer function.

  5. TF-04-DefineAccuracy.py
    Add Accuracy calculation.

  6. TF-05-RunGraphWithError.py
    Connect to runtime and run graph.

  7. TF-06-WorkingBasic.py
    Fix error: initialize variables.

  8. TF-07-IncreasedBatch.py
    Try larger batch of images.

  9. TF-08-OneCNN.py
    Create the first Convolution layer in the neural net. Add name scope to make the layers easier to read.

  10. TF-09-TwoCNN.py
    Create the second Convolution layer in the neural net.

  11. TF-10-FullConnect.py
    Create the fully connected layer in the neural net.

  12. TF-11-DropOut.py
    Add the dropout layer in the neural net to control overfitting.

  13. TF-12-TensorBoard.py
    Add FileWriter to visualize with TensorBoard. Add names and name scope to make it easier to read the graph. Add viewing images in TensorBoard. Add line graphs and histograms of variables. Add visualization for embedding.

Keras programming exercises:

  1. Keras-00-ReadData.py
    Load MNIST data from archive.

  2. Keras-01-DenseInput.py
    From #1, flatten image into a vector to prepare for the Dense layer.

  3. Keras-02-DenseLayer.py
    From #2, build a dense layer, compile and train.

  4. Keras-03-CNNInput.py
    From #1, reshape image to prepare for the convolution layer.

  5. Keras-04-OneCNNLayer.py
    From #4, build one CNN layer.

  6. Keras-05-TwoCNNLayer.py
    From #5, add second CNN layer and a dropout layer.