Chris Pollett >
Old Classes >
CS256 |
HW2 Solutions PageBesides looking at your source code, to grade the homework, I used the following shell script to generate and test my own data with your program: mkdir cp_train_data mkdir cp_test_data python2 zener_generator.py cp_train_data 1000 python2 zener_generator.py cp_test_data 1000 python2 sk_train.py 0.05 1000 P cp_plus_model.txt cp_train_data python2 svm_model_tester.py cp_plus_model.txt cp_train_data cp_test_data If I saw it give 100% accuracy, I would get suspicious and run some additional ad hoc tests. There were several homeworks that got a perfect score on Hw2. After grading, I selected from amongst these to post the solution below. My feeling among all the perfect scores the write-ups and code documentation still could have been better. The student or students that had their homework chosen received 1 bonus point after curving for having their homework selected. If you were chosen and would rather your homework not be used as the solution let me know and I will choose someone else's homework and they will receive the bonus point instead. The only changes I made were to convert the names listed in the homework files to SJSU student. [Hw2 Solution-ZIP] |