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.
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¶
Navigate to the
backenddirectory.
cd backend
Load the AML-IP environment.
source /AML-IP/install/setup.bash
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.
Load the AML-IP environment.
source /AML-IP/install/setup.bash
Navigate to the
backenddirectory.
cd backend
Start an inference node:
python3 inference.py
7.3.3. Start the AML Dashboard¶
Navigate to the
frontend/aml_dashboarddirectory.
cd frontend/aml_dashboard
Start the AML Dashboard:
npm run dev
Access the dashboard at http://localhost:5173/.
7.4. Evaluating the Model¶
To evaluate a model using the AML Dashboard, follow these steps:
Navigate to the
Batch Predictiontab on the AML Dashboard.Click on the
Update Predictionsbutton in the Algebraic Machine Learning section to initiate the predictions.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:
Go to the
Real-time Predictiontab on the AML Dashboard.Click on the
toggle predictionbutton in the Predict for AML section to start the real-time prediction process.In the webcam section, toggle the
activate videobutton to enable the webcam.