hkayabilisim commited on
Commit
d3ef89c
·
1 Parent(s): af45389

ui: validation added to scatterplots in test page

Browse files

Validation dataset is included to the scatterplots on the testing page.

Files changed (1) hide show
  1. 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
- for col in predictions.keys():
23
- with solara.Row():
24
- solara_px.scatter(
25
- predictions[col]['training'],
26
- x = 'prediction',
27
- y = 'target',
28
- title=f'{col}'
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