sps44 commited on
Commit
74de448
·
1 Parent(s): b37f604

debug metric widget

Browse files
Files changed (1) hide show
  1. run.py +3 -2
run.py CHANGED
@@ -9,7 +9,7 @@ from renumics.spotlight.layouts import debug_classification
9
 
10
  if __name__ == "__main__":
11
 
12
- cache_file_issues="embedding_issues.pkl"
13
 
14
  # Load dataset using datasets.load_dataset()
15
  ds = datasets.load_dataset("renumics/emodb-enriched", split="all")
@@ -21,7 +21,8 @@ if __name__ == "__main__":
21
 
22
 
23
  while True:
24
- layout = debug_classification(label='gender', prediction='m1_gender_prediction', embedding='m1_embedding', features=['age', 'emotion'], inspect={'audio': spotlight.Audio})
 
25
 
26
  view = spotlight.show(ds, issues=issues, port=7860, host="0.0.0.0", layout=layout,
27
  allow_filebrowsing=False)
 
9
 
10
  if __name__ == "__main__":
11
 
12
+ cache_file_issues="metadata_issues.pkl"
13
 
14
  # Load dataset using datasets.load_dataset()
15
  ds = datasets.load_dataset("renumics/emodb-enriched", split="all")
 
21
 
22
 
23
  while True:
24
+ #layout = debug_classification(label='gender', prediction='m1_gender_prediction', embedding='m1_embedding', features=['age', 'emotion'], inspect={'audio': spotlight.Audio})
25
+ layout = compare_classification(label='gender', model1_prediction='m1_gender_prediction', model1_embedding='m1_embedding', model1_correct='m1_correct', model2_prediction='m2_gender_prediction', model2_embedding='m2_embedding', model2_correct='m2_correct', inspect={'audio': spotlight.Audio})
26
 
27
  view = spotlight.show(ds, issues=issues, port=7860, host="0.0.0.0", layout=layout,
28
  allow_filebrowsing=False)