Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Practice 8 - Classification with TensorFLow

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


Execution

  1. Run main.py
    # Make sure your current directory is in this folder
    $ python3 main.py
  2. If succeed, you will get the following result
    # If you run the program first time, you may download the datasets first (optional)
    Downloading data from https://s3.amazonaws.com/img-datasets/mnist.npz
    11493376/11490434 [==============================] - 12s 1us/step
    
    # If you have already run the pregram before, you may see the following information (optional)
    Extracting MNIST_data/train-images-idx3-ubyte.gz
    Extracting MNIST_data/train-labels-idx1-ubyte.gz
    Extracting MNIST_data/t10k-images-idx3-ubyte.gz
    Extracting MNIST_data/t10k-labels-idx1-ubyte.gz
    
    # The probability of prediction (the result is not unique)
    ('Step   0', 0.1327)
    ('Step  50', 0.6618)
    ('Step 100', 0.7444)
    ('Step 150', 0.7856)
    ('Step 200', 0.8055)
    ('Step 250', 0.8217)
    ('Step 300', 0.8316)
    ('Step 350', 0.838)
    ('Step 400', 0.8485)
    ('Step 450', 0.8508)
    ('Step 500', 0.851)
    ('Step 550', 0.8567)
    ('Step 600', 0.8594)
    ('Step 650', 0.8635)
    ('Step 700', 0.8637)
    ('Step 750', 0.8697)
    ('Step 800', 0.8722)
    ('Step 850', 0.8716)
    ('Step 900', 0.8744)
    ('Step 950', 0.8759)

References