Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Practice 15 - Batch Normalization in TensorFlow

This practice is refer to the following resources credited to Morvan.


Execution

  1. Run main.py with a argument
    # Make sure your current directory is in this folder
    # Train with "ReLU" as the activation function
    $ python3 main.py relu
    # Train with "tanh" as the activation function
    $ python3 main.py tanh
  2. If succeed, you will get the following result
    # Train with "ReLU" as the activation function
    [INFO] Using ReLU as activation function
    # Train with "tanh" as the activation function
    [INFO] Using tanh as activation function
  3. Besides, you will see the following figures
    • Training with tf.nn.relu as the activation function
      • Input data
      • Histogram
      • Loss rate
    • Training with tf.nn.tanh as the activation function
      • Input data
      • Histogram
      • Loss rate

References