Modules required:
$ pip install numpy $ pip install matplotlib $ pip install tensorflow Step 1: Import the entire dependency Steps to follow
|
|
after this step the set will be loaded data mnist.
output:
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
Step 3: Create the dataset
|
Step 4: Displaying the dataset using MatplotLib
|
To display data, we can use this function — display (0)
exit:

Step 5: Fitting the data using a linear classifier
|
Step 6: Assess accuracy
|
Output:
0.9137
Step 7: Forecasting data
|
Output:
prediction: [ 7], label: 7
Complete code for handwritten classification
|
Shop
Latest questions