# Submit

Students can submit their assignment using the `Assignment.submit()` function. Submission requires a network connection and the python `requests` library. Once called, the `submit()` method automatically calls `Assignment.NIDS.fit()` with the data from `benign.csv`. Next, it calls `Assignment.NIDS.predict()` with the data from `unknown.csv` to produce a prediction. This prediction is then sent to the server which checks the prediction for correctness. The performance is displayed back to the user, together with a message stating whether they passed the assignment or not.

Note

If the server is unable to handle the request, it will display a message back to the user with the given error. Errors are also logged server side. If the student is unable to solve the error themselves, please contact t.s.vanede@utwente.nl.

`Assignment.``submit`(student_numbers, highscore_name=None, server='https://ml4sec.eemcs.utwente.nl/submit')

  Submit your prediction to the server to check if the prediction of your unknown data is correct. The result will print whether you passed the assignment or not.

  Parameters

    - student_number (list) – List of all student numbers in the group as a string, e.g., ‘s1234567’. Please use your actual student number, we have build in checks to prevent fraud.

    - highscore_name (string, optional) – If given, your performance will be published on the highscore page under this name.

    - server (string, default=”https://ml4sec.eemcs.utwente.nl/submit”) – Address of server to submit assignment.