Skip to content

This repository contains the starter code and the pickled data files to be used for the PA2 of the course CSE-253

Notifications You must be signed in to change notification settings

henryhao1991/PA2-Backprop

 
 

Repository files navigation

CSE253 PA2

  1. To check the gradient from numerical and backprop, simply run: python check_gradient.py

  2. To train the neural network, simply run: python neuralnet.py

Change config accordingly based on different quetions. The test accuracy will be printed, and the train/validation loss/accuracy will be saved in a .pkl file.

  1. To get the loss/accuracy plot, simply run: python plot_<question number>.py

Each question has one file for plot purpose. Remember to change the filename to generated .pkl file.

  1. In case the test accuracy is not recorded, we still can get the test accuracy after training. Simply run: python get_test_accuracy.py

Remember to change the filename to the .pkl file.

About

This repository contains the starter code and the pickled data files to be used for the PA2 of the course CSE-253

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%