compare_graph
Description
This API performs the function of comparing the results from the model test with the actual values and displaying them in a graph.
API module path
from api.v2.util.compare_graph import compare_graph
Parameters
real_values
- Specify the actual values in array format.
pred_values
- Specify the predicted values in array format.
X_size
- Specifies the Plot width.
- Set the width value of the result image to be output and saved.
- Example
- x_size = 10
Y_size
- Specifies the Plot height.
- Set the height value of the result image to be output and saved.
- Example
- y_size = 10
Example Sample Code (Python)
Results

Check the entire module code.
datahub/api/v2/util/compare_graph.py at main · machbase/datahub
All Industrial IoT DataHub with data visualization and AI source - machbase/datahub