7. Make predictions with the AML Dashboard

7.1. Background

The AML Dashboard is a web-based tool that allows users to interact with the AML framework.

This tutorial showcases the process of making predictions using an AML model through the AML Dashboard, covering both real-time and batch prediction workflows.

../../_images/inference_dashboard.png

7.2. Prerequisites

Ensure you have installed the AML Dashboard using one of the following methods:

For more information, check the AML Dashboard Interfaces and AML Dashboard Usage sections.

7.3. Running the demo

To run the necessary components for evaluating a model and making predictions using the AML Dashboard, follow these steps:

7.3.1. Start the backend server

  1. Navigate to the backend directory.

cd backend
  1. Load the AML-IP environment.

source /AML-IP/install/setup.bash
  1. Start the server:

python3 server.py

7.3.2. Start the Inference Node

Warning

Before starting the inference node, ensure that there is at least one model and traing set available in the download directory.

  1. Load the AML-IP environment.

source /AML-IP/install/setup.bash
  1. Navigate to the backend directory.

cd backend
  1. Start an inference node:

python3 inference.py

7.3.3. Start the AML Dashboard

  1. Navigate to the frontend/aml_dashboard directory.

cd frontend/aml_dashboard
  1. Start the AML Dashboard:

npm run dev
  1. Access the dashboard at http://localhost:5173/.

7.4. Evaluating the Model

To evaluate a model using the AML Dashboard, follow these steps:

  1. Navigate to the Batch Prediction tab on the AML Dashboard.

  2. Click on the Update Predictions button in the Algebraic Machine Learning section to initiate the predictions.

  3. The confusion matrix for the model’s predictions will be displayed. This matrix helps in assessing the model’s performance by showing the accuracy and errors.

Note

If binary classification is used, the target class chosen in the training will be displayed as the positive class, while the other classes will be considered as the negative class.

7.5. Real-Time Predictions

Warning

This feature is only available when the dataset is Sensors.

To make real-time predictions using the trained model with the AML Dashboard, follow these steps:

  1. Go to the Real-time Prediction tab on the AML Dashboard.

  2. Click on the toggle prediction button in the Predict for AML section to start the real-time prediction process.

  3. In the webcam section, toggle the activate video button to enable the webcam.