corrected layout dict
Browse files
dcase23-task2-enriched.py
CHANGED
@@ -257,8 +257,8 @@ SPOTLIGHT_LAYOUTS = {
|
|
257 |
}
|
258 |
]
|
259 |
},
|
260 |
-
"simple": {"orientation":"vertical","children":[{"kind":"split","weight":60.575296108291035,"orientation":"horizontal","children":[{"kind":"tab","weight":31.52260461369049,"children":[{"kind":"widget","name":"Table","type":"table","config":{"tableView":"filtered","visibleColumns":["class","d1p","d1v","d2p","d2v","d3p","d3v","label","section","domain"],"sorting":
|
261 |
-
"extended": {"orientation":"vertical","children":[{"kind":"split","weight":54.145516074450086,"orientation":"horizontal","children":[{"kind":"tab","weight":31.52260461369049,"children":[{"kind":"widget","name":"Table","type":"table","config":{"tableView":"filtered","visibleColumns":["class","d1p","d1v","d2p","d2v","d3p","d3v","label","section","domain"],"sorting":
|
262 |
}
|
263 |
|
264 |
SPOTLIGHT_RENAME = {
|
@@ -366,10 +366,10 @@ class DCASE2023Task2Dataset(datasets.GeneratorBasedBuilder):
|
|
366 |
"d2v": datasets.Value("string"),
|
367 |
"d3p": datasets.Value("string"),
|
368 |
"d3v": datasets.Value("string"),
|
369 |
-
"anomaly_score_dcase2023_task2_baseline_ae": datasets.Value("float32"),
|
370 |
-
"anomaly_score_embedding_lof": datasets.Value("float32"),
|
371 |
"prediction_dcase2023_task2_baseline_ae": datasets.Value("int64"),
|
372 |
"prediction_correct_dcase2023_task2_baseline_ae": datasets.Value("int64"),
|
|
|
373 |
}
|
374 |
if self.config.embeddings_urls is not None:
|
375 |
features.update({
|
|
|
257 |
}
|
258 |
]
|
259 |
},
|
260 |
+
"simple": {"orientation":"vertical","children":[{"kind":"split","weight":60.575296108291035,"orientation":"horizontal","children":[{"kind":"tab","weight":31.52260461369049,"children":[{"kind":"widget","name":"Table","type":"table","config":{"tableView":"filtered","visibleColumns":["class","d1p","d1v","d2p","d2v","d3p","d3v","label","section","domain"],"sorting":None,"orderByRelevance":False}}]},{"kind":"tab","weight":33.869200490640154,"children":[{"kind":"widget","name":"Similarity map with baseline anomaly score","type":"similaritymap","config":{"placeBy":None,"reductionMethod":None,"colorBy":"anomaly_score_dcase2023_task2_baseline_ae","sizeBy":"label","filter":False,"umapNNeighbors":20,"umapMetric":None,"umapMinDist":0.15,"pcaNormalization":None,"umapMenuLocalGlobalBalance":None,"umapMenuIsAdvanced":False}}]},{"kind":"tab","weight":34.60819489566936,"children":[{"kind":"widget","name":"Similarity map with classes","type":"similaritymap","config":{"placeBy":None,"reductionMethod":None,"colorBy":"class","sizeBy":None,"filter":False,"umapNNeighbors":20,"umapMetric":None,"umapMinDist":0.15,"pcaNormalization":None,"umapMenuLocalGlobalBalance":None,"umapMenuIsAdvanced":False}},{"kind":"widget","name":"Scatter Plot","type":"scatterplot","config":{"xAxisColumn":None,"yAxisColumn":None,"colorBy":None,"sizeBy":None,"filter":False}},{"kind":"widget","name":"Histogram","type":"histogram","config":{"columnKey":"domain","stackByColumnKey":"prediction_correct_dcase2023_task2_baseline_ae","filter":False}}]}]},{"kind":"tab","weight":39.424703891708965,"children":[{"kind":"widget","name":"Inspector","type":"inspector","config":{"views":[{"view":"AudioView","columns":["path"],"name":"view","key":"dea9a175-9582-412e-9f49-be729e8838fb"},{"view":"SpectrogramView","columns":["path"],"name":"view","key":"676bd937-226b-4632-ae2d-ec8bc37bcc5d"},{"view":"ScalarView","columns":["label"],"name":"view","key":"dbfcc0b1-9e96-4d31-8856-f0bd7f0b8144"},{"view":"ScalarView","columns":["domain"],"name":"view","key":"3e79654f-e017-402c-b136-6a13c4409ae4"}],"visibleColumns":4}}]}]},
|
261 |
+
"extended": {"orientation":"vertical","children":[{"kind":"split","weight":54.145516074450086,"orientation":"horizontal","children":[{"kind":"tab","weight":31.52260461369049,"children":[{"kind":"widget","name":"Table","type":"table","config":{"tableView":"filtered","visibleColumns":["class","d1p","d1v","d2p","d2v","d3p","d3v","label","section","domain"],"sorting":None,"orderByRelevance":False}}]},{"kind":"tab","weight":33.869200490640154,"children":[{"kind":"widget","name":"Similarity map with baseline anomaly score","type":"similaritymap","config":{"placeBy":None,"reductionMethod":None,"colorBy":"anomaly_score_dcase2023_task2_baseline_ae","sizeBy":"label","filter":False,"umapNNeighbors":20,"umapMetric":None,"umapMinDist":0.15,"pcaNormalization":None,"umapMenuLocalGlobalBalance":None,"umapMenuIsAdvanced":False}}]},{"kind":"tab","weight":34.60819489566936,"children":[{"kind":"widget","name":"Similarity map with classes","type":"similaritymap","config":{"placeBy":None,"reductionMethod":None,"colorBy":"domain","sizeBy":None,"filter":False,"umapNNeighbors":20,"umapMetric":None,"umapMinDist":0.15,"pcaNormalization":None,"umapMenuLocalGlobalBalance":None,"umapMenuIsAdvanced":False}},{"kind":"widget","name":"Scatter Plot","type":"scatterplot","config":{"xAxisColumn":None,"yAxisColumn":None,"colorBy":None,"sizeBy":None,"filter":False}}]}]},{"kind":"split","weight":45.854483925549914,"orientation":"horizontal","children":[{"kind":"tab","weight":62.314308053166535,"children":[{"kind":"widget","name":"Inspector","type":"inspector","config":{"views":[{"view":"AudioView","columns":["path"],"name":"view","key":"dea9a175-9582-412e-9f49-be729e8838fb"},{"view":"SpectrogramView","columns":["path"],"name":"view","key":"676bd937-226b-4632-ae2d-ec8bc37bcc5d"},{"view":"ScalarView","columns":["label"],"name":"view","key":"dbfcc0b1-9e96-4d31-8856-f0bd7f0b8144"},{"view":"ScalarView","columns":["domain"],"name":"view","key":"3e79654f-e017-402c-b136-6a13c4409ae4"}],"visibleColumns":4}}]},{"kind":"tab","weight":37.685691946833465,"children":[{"kind":"widget","name":"Histogram","type":"histogram","config":{"columnKey":"anomaly_score_dcase2023_task2_baseline_ae","stackByColumnKey":"prediction_correct_dcase2023_task2_baseline_ae","filter":False}},{"kind":"widget","name":"Scatter Plot (2)","type":"scatterplot","config":{"xAxisColumn":"anomaly_score_dcase2023_task2_baseline_ae","yAxisColumn":"anomaly_score_lof","colorBy":"label"}}]}]}]},
|
262 |
}
|
263 |
|
264 |
SPOTLIGHT_RENAME = {
|
|
|
366 |
"d2v": datasets.Value("string"),
|
367 |
"d3p": datasets.Value("string"),
|
368 |
"d3v": datasets.Value("string"),
|
369 |
+
"anomaly_score_dcase2023_task2_baseline_ae": datasets.Value("float32"),
|
|
|
370 |
"prediction_dcase2023_task2_baseline_ae": datasets.Value("int64"),
|
371 |
"prediction_correct_dcase2023_task2_baseline_ae": datasets.Value("int64"),
|
372 |
+
"anomaly_score_embedding_lof": datasets.Value("float32"),
|
373 |
}
|
374 |
if self.config.embeddings_urls is not None:
|
375 |
features.update({
|