See project-2.pdf in the repository for details.
-
To begin, you need three files (and, of course,
proj2-8.py
andproj2-16.py
):x_test.csv y_test.csv fraction_xy.py
-
Get all the required dependencies: Windows
pip install -r requirements.txt
macOS/Linux
pip3 install -r requirements.txt
-
Run fraction_xy.py to get a random subset of testing data as training data. Windows
python fraction_xy.py x_test.csv y_test.csv <0.08 or 0.16> <seed-value>
macOS/Linux
python3 fraction_xy.py x_test.csv y_test.csv <0.08 or 0.16> <seed-value>
and then rename the generated files to
x_train8.csv
andy_train8.csv
orx_train16.csv
andy_train16.csv
, depending on which one you generated for. -
Run the program by typing in the command line/terminal:
Windows
python proj2-8.py
or
python proj2-16.py
macOS/Linux
python3 proj2-8.py
or
python3 proj2-16.py