Machine Learning on the Web

Overarching Project


In the last parts of the overarching project, you’ll first add an inference API to the project that can be used to predict the correctness of the code that the student writes. Once this is done, you’ll add client-side functionality that uses the API and shows the predictions to the student.

Loading Exercise...

Next, you’ll get to work on the client-side functionality that uses the inference API. Note that for testing the client-side functionality, you can POST data to the training endpoint of the inference API, which allows you to quickly train the model with new data.

Having a training endpoint is not a good idea in a production environment, as it would allow anyone to train the model with arbitrary data. For testing, it is fine.

Loading Exercise...


Speeding up automated assessment

If you’re wondering why one would use an inference API in a web application, see e.g. the article Speeding up automated assessment.