top of page

Classification - Hand-crafted, Neural network

Need help with Machine Learning sample assignment or Project Help? At Codersarts we offer 1:1 session with expert, Code mentorship, Course Training, and ongoing development projects. Get help from vetted Machine Learning engineers, mentors, experts, and tutors.


Problem 1

  1. MNIST is a handwritten Digit Classification dataset that contains 60,000 training and 10,000 test images. Using this dataset, build a three-layer feedforward neural network. Use 10K images from the training set as validation data. The two hidden layers have a dimension of 500 each. Using a suitable loss function, train the network for 250 epochs, and report the classification accuracy on test data. Do not use regularizations. Plot the error and classification accuracy on both training and validation data over the epochs. Justify the loss used to train the network. Also, normalize the data appropriately.

  2. Repeat the above experiment, but train the network with the following regularization:

  • L2 regularization

  • Dropout

  • Early stopping

Compare with the results in the previous experiment and detail your observations after adding the regularizations. Note: No need to implement them on your own; the software framework (Tensorflow/Pytorch) typically provides implementations for l2 regularization and dropout. Early stopping is employed during training, so you need to tune your training code accordingly.


Problem 2

Train a Convolutional Neural Network (CNN) for image classification on the CIFAR-10 dataset. Try different network configurations and parameters:

  • Number of convolutional (Conv) layers

  • Fully connected (FC) layers

  • Number of filters in different layers

  • Max-pooling

  • Number of epochs

  • Stride

  • Activations

Study the effect of these network parameters and configurations on the classification performance. Try to improve the performance as much as possible by modifying these parameters. Please present the results of such a study in the form of tables/plots that show the classification performance as a function of these parameters. Justify the activations used in the network. Also, look at some of the images that are misclassified and see if there is an explanation for such misclassifications.


If you are looking for any kind of coding help in programming languages, Contact us for instant solution.



bottom of page