Please open Problem_1.ipynb on jupyter.
Problem 1 part 1 is finished. You can check the implementation.
SGDM optimizer is implemented.
- Please load the data first. The you can run the model with SGDM optimizer.
- After the training, please run the cell below the SGDM cell to save the parameters of the trained model to files.
- Please run the makefile to compile the c implementation under c_file/ and execute the executable.
- The loss produced by the trained model implemented in Python should be the same as the one produced by the c implementation.
- If you want to change the data to test the program, you can change the data set in the python implementation and, the file path and the data set size in the c implementaion in function load_data(). The data set must match.