Tests for CS540 Spring 2021 HW5: Linear Regression
- test that
synthetic_datasetsuses different random values for each X - clarify
synthetic_datasetsoutput
- display which values were used when tests fail/have errors
- add more tests for
print_stats
- add more tests for
synthetic_datasets
- check quadratic dataset std in addition to linear std
- current version should format correctly if out of date
- test that
plot_msegeneratesmse.pdf(can't check graph output)
Download test.py move it into the directory that contains regression.py and bodyfat.csv
The contents of your directory should look like this:
$ tree
.
├── regression.py
├── bodyfat.csv
└── test.pyTo run the tests, do
$ python3 test.pyDue to some of the tests needing to check the printed output of your function, you may have issues like "AttributeError: '_io.TextIOWrapper' object has no attribute 'getvalue'" if you don't run the tester in your terminal.
These tests are not endorsed or created by anyone working in an official capacity with UW Madison or any staff for CS540. The tests are make by students, for students.
By running test.py, you are executing code you downloaded from the internet. Back up your files and take a look at what you are running first.
If you have comments or questions, create an issue at https://github.com/CS540-testers-SP21/hw3-tester/issues or ask in our discord at https://discord.gg/RDFNsAxgCQ.