hkayabilisim commited on
Commit
dc74163
·
1 Parent(s): 247fd9c

ui: added tooltip to loss plot in training

Browse files
Files changed (1) hide show
  1. agent/dashboard/training.py +8 -0
agent/dashboard/training.py CHANGED
@@ -30,6 +30,12 @@ local_state = solara.reactive(
30
  @solara.component
31
  def LossPlot(data, render_count):
32
  options = {
 
 
 
 
 
 
33
  "xAxis": {
34
  "type": "category",
35
  "data": data['epoch'],
@@ -39,10 +45,12 @@ def LossPlot(data, render_count):
39
  },
40
  "series": [
41
  {
 
42
  "data": data['trn_loss'],
43
  "type": 'line'
44
  },
45
  {
 
46
  "data": data['val_loss'],
47
  "type": 'line'
48
  },
 
30
  @solara.component
31
  def LossPlot(data, render_count):
32
  options = {
33
+ 'tooltip': {
34
+ 'trigger': 'axis',
35
+ 'axisPointer': {
36
+ 'type': 'cross'
37
+ }
38
+ },
39
  "xAxis": {
40
  "type": "category",
41
  "data": data['epoch'],
 
45
  },
46
  "series": [
47
  {
48
+ "name": "training loss",
49
  "data": data['trn_loss'],
50
  "type": 'line'
51
  },
52
  {
53
+ "name": "validation loss",
54
  "data": data['val_loss'],
55
  "type": 'line'
56
  },