All materials for the assignment can be found here:
- BIDS_assignment_training_data_RESIT.xlsx
- BIDS_assignment_test_data.xlsx
- BIDS_assignment_test_data_predictionsubmissionformat.xlsx
- Use BIDS_assignment_training_data_RESIT.xlsx to train your models.
- Apply your model on BIDS_assignment_test_data.xlsx.
- Add your test set predictions in BIDS_assignment_test_data_predictionsubmissionformat.xlsx.
To submit for summative assessment of the coursework, and your CID is 01234567:
- Save this file as BIDS_2024_01234567_test_predictions_summative.xlsx
Here is some example code how you can do this:
# change this to the location of the submission file (in folder of assignment data)
Y_pred_format = pd.read_excel('BIDS_assignment_test_data_predictionsubmissionformat.xlsx')
# change this variable (y_pred_test) to whatever you named the predicted class of the assignment test data
Y_pred_format.Predicted_Group = y_pred_test
# change this to YOUR CID number
CID = '1234567'
# change this for the type of submission (formative or summative)
tp = 'summative'
# do not change anything below
filename1 = 'BIDS_2024_' # do not change this
filename2 = '_test_predictions_' # do not change this
filename3 = '.xlsx' # do not change this
filename = filename1+CID+filename2+tp+filename3 # do not change this
# save the predictions in the format you need to email me (is saved in the folder of the notebook)
Y_pred_format.to_excel(filename)