| Code | Points | Description |
|---|---|---|
| A1 | 2 | Submission is zip containing cancerpredict.py |
| A2 | 2 | Zip is named after uni, unzips to folder with uni-hw10 |
| A3 | 2 | cancerpredict.py is normal python files |
Each one all-or-nothing
| Code | Points | Description |
|---|---|---|
| B1 | 3 | readCSV correctly loads dataset and drops ID column |
| B2 | 6 | splitDataset shuffles and splits dataset into testing/training |
| B3 | 4 | runKNNClassifier setup correctly and returns accuracy in correct range 85–95 |
| B4 | 4 | runSVMClassifier setup correctly and returns accuracy in correct range 85–95 |
Modifiers:
readCSV (hardcoding in main is OK, no deduction)dataset.copy() and/or other dataset-copying action like reset_index without inplace=True, etcKNeighborsClassifier, SVC (only n_neighbors is needed for KNeighborsClassifier, chatgpt suggests other arguments including linear kernel, etc)Uses code C, -2 each.
This is a non-exhaustive list, see comments for more information.
ravel())TODO and pass