Sprint 2 Semester 2: Use Case Diagrams (download results, test, train Naive Bayes) - SD-Group-11/ml-frontend GitHub Wiki

Use Case Name - Download results

Use Case Name Download results
Initiating Actor User
Triggering Event User wants to download results file from the training or testing pages

Preconditions

The user must have access to an internet connection. The user must have a test dataset uploaded if they are downloading testing results.

Postconditions

The file is downloaded onto the user's device.

Brief Description

The user can download files from the platform onto their device. They choose the filetype from all the drop down on the displayed ROC Curve or Confusion Matrix, it gets downloaded and then is on their device.

Basic Flow

  • User clicks train/test button
  • ROC Curve or Confusion is chosen to be displayed by the user
  • User selects their desired filetype for their results from the dropdown on the RHS
  • File is on user's device

Exceptions:

The system is offline.

Use Case Diagram:

Use Case Name - Train data

Use Case Name Upload file
Initiating Actor User
Triggering Event User wants to train data

Preconditions

The user must have access to an internet connection. The user must be on the correct page - the Naive Bayes training page. There must be at least 1 dataset on the system.

Postconditions

The data has been trained.

Brief Description

The user can train a Naive Bayes model on the platform.

Basic Flow

  • User selects file.
  • User clicks button.
  • Data is trained (visualisation shown).

Exceptions:

The system is offline. No file is chosen.

Use Case Diagram:

Use Case Name - Test data

Use Case Name Upload file
Initiating Actor User
Triggering Event User wants to test the their model

Preconditions

The user must have access to an internet connection. The user must be on the correct page - the Naive Bayes training page. The user must have a training dataset uploaded or would like to upload.

Postconditions

The model is tested.

Brief Description

The user can test data on the platform using the uploaded files. If they do not have an associated testing dataset uploaded then they can upload directly from this page.

Basic Flow

  • User selects dataset.
  • If user has not uploaded an associated training dataset - click upload button and upload dataset
  • User clicks testing button.
  • Data is tested (visualisation shown).

Exceptions:

The system is offline. Data hasn't been trained Dataset does not have an associated testing dataset

Use Case Diagram: