Statement Code Resolutions Report
Follow this commands to run the desired model:
logistic regression:
python hw1-perceptron.py --model logistic_regression --save-path ./model.pklperceptron:
python hw1-perceptron.py [ --model perceptron ] --save-path ./model.pklmlp:
python hw1-mlp.py --save-path ./model.pklQuestion two is divided in three python files, namely hw1-ffn.py hw1-ffn-23a.py and hw1-ffn-23b.py, each corresponding to topics 2, 3 (a) and (b) of the main question, respectively. Write the command you would usually use to run any python file for either of them.
For this homework, if you can only access CPU on you machine, we strongly advise you to take the necessary files from this repository and run them on a online notebook or codespace due to their high computational cost and consequent extensive running time.
Statement Code Resolutions Report
Each of the developed models possess their own python files. To run each one, open the directory skeleton_hw2_q1, chose the desired statment topic (question 1.1 or question 1.2) and run:
python name_of_file_to_run.py --[no_softmax]activate the --no_softmax flag if you wish to run the model without that output layer.
Write the command you would normally use to run a Python file to execute the topics in this question. All the files are named according to their item number and corresponding architecture.