Question: Write a Python program that learns how to recognize handwritten digits using stochastic gradient descent and the MNIST training data. I. Implement the NN as

 Write a Python program that learns how to recognize handwritten digits

Write a Python program that learns how to recognize handwritten digits using stochastic gradient descent and the MNIST training data. I. Implement the NN as described at the URL above. Use stochastic gradient descent to train the NN. Try different values of the hyper-parameters, learning rate (0.01,0.1, and 1), batch size (online learning of size 1, mini-batch of size 20, and full-batch of all instances), and epochs. Report the results achieved, classification accuracy, and training time (convergence speed), and make your conclusion regarding the hyperparameters effect on the learning process. II. Try creating a network with just two layers - an input and an output layer, no hidden layer - with 784 and 10 neurons, respectively. Train the network using stochastic gradient descent. What classification accuracy can you achieve

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!