Sprint 1 Semester 2: Sequence Diagram (Test Page) - SD-Group-11/ml-frontend GitHub Wiki

When the user first loads the Test page, the web server makes a request to the Django database server, to get information about the users previously trained models. The Django server will then query its database to see if the user has any trained models. If so it returns the names of these models and they are displayed on the web page in a drop down menu. If not the Django server returns a message communicating that no models where found, and the web server then passes this message on to the user.

The user can choose an available model from the from the drop down menu and click the "Select" button. The web server makes a request to the Django server to check whether the chosen model has an associated test data-set. If so the Django server returns the data-set to the web server. If not the web server returns a message to the user asking them to upload a test data-set on the Manage Datasets page.

After selecting a model the user can click the "Test" button and the web server then makes a request to the Django server to run the machine learning model on the test data-set.The Django servers returns the test results to the web server which then displays them, along with graphs of the results.