Commit
·
d3ef89c
1
Parent(s):
af45389
ui: validation added to scatterplots in test page
Browse filesValidation dataset is included to the scatterplots on the testing page.
- agent/dashboard/testing.py +12 -8
agent/dashboard/testing.py
CHANGED
|
@@ -19,14 +19,18 @@ def force_render():
|
|
| 19 |
|
| 20 |
@solara.component
|
| 21 |
def ScatterPlot(predictions, render_count):
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
|
| 32 |
@solara.component
|
|
|
|
| 19 |
|
| 20 |
@solara.component
|
| 21 |
def ScatterPlot(predictions, render_count):
|
| 22 |
+
with solara.Card(title='Visual checks of the model performance',
|
| 23 |
+
subtitle='''Scatter plots of predicted and target outputs. More the dots
|
| 24 |
+
populate around the main diagonal (y=x), better the model performance.'''):
|
| 25 |
+
for col in predictions.keys():
|
| 26 |
+
with solara.Row():
|
| 27 |
+
for dataset in predictions[col].keys():
|
| 28 |
+
solara_px.scatter(
|
| 29 |
+
predictions[col][dataset],
|
| 30 |
+
x = 'prediction',
|
| 31 |
+
y = 'target',
|
| 32 |
+
title=f'{col} - {dataset}'
|
| 33 |
+
)
|
| 34 |
|
| 35 |
|
| 36 |
@solara.component
|