updated spotlight_layouts
Browse files- dcase23-task2-enriched.py +3 -139
dcase23-task2-enriched.py
CHANGED
@@ -121,145 +121,9 @@ DATASET = {
|
|
121 |
|
122 |
|
123 |
SPOTLIGHT_LAYOUTS = {
|
124 |
-
"standard": {
|
125 |
-
|
126 |
-
|
127 |
-
{
|
128 |
-
"kind": "split",
|
129 |
-
"weight": 51.96463654223969,
|
130 |
-
"orientation": "horizontal",
|
131 |
-
"children": [
|
132 |
-
{
|
133 |
-
"kind": "tab",
|
134 |
-
"weight": 30,
|
135 |
-
"children": [
|
136 |
-
{
|
137 |
-
"kind": "widget",
|
138 |
-
"name": "Table",
|
139 |
-
"type": "table",
|
140 |
-
"config": {
|
141 |
-
"tableView": "full",
|
142 |
-
"visibleColumns": [
|
143 |
-
"class",
|
144 |
-
"class_name",
|
145 |
-
"config",
|
146 |
-
"d1p",
|
147 |
-
"d1v",
|
148 |
-
"d2p",
|
149 |
-
"d2v",
|
150 |
-
"d3p",
|
151 |
-
"d3v",
|
152 |
-
"file_path",
|
153 |
-
"label",
|
154 |
-
"section",
|
155 |
-
"split"
|
156 |
-
],
|
157 |
-
"sorting": None,
|
158 |
-
"orderByRelevance": False
|
159 |
-
}
|
160 |
-
}
|
161 |
-
]
|
162 |
-
},
|
163 |
-
{
|
164 |
-
"kind": "tab",
|
165 |
-
"weight": 33.970588235294116,
|
166 |
-
"children": [
|
167 |
-
{
|
168 |
-
"kind": "widget",
|
169 |
-
"name": "Similarity Map (2)",
|
170 |
-
"type": "similaritymap",
|
171 |
-
"config": {
|
172 |
-
"umapNNeighbors": 20,
|
173 |
-
"umapMinDist": 0.15,
|
174 |
-
"colorBy": "label"
|
175 |
-
}
|
176 |
-
}
|
177 |
-
]
|
178 |
-
},
|
179 |
-
{
|
180 |
-
"kind": "tab",
|
181 |
-
"weight": 36.029411764705884,
|
182 |
-
"children": [
|
183 |
-
{
|
184 |
-
"kind": "widget",
|
185 |
-
"name": "Similarity Map",
|
186 |
-
"type": "similaritymap",
|
187 |
-
"config": {
|
188 |
-
"placeBy": None,
|
189 |
-
"reductionMethod": None,
|
190 |
-
"colorBy": "class_name",
|
191 |
-
"sizeBy": None,
|
192 |
-
"filter": False,
|
193 |
-
"umapNNeighbors": 20,
|
194 |
-
"umapMetric": None,
|
195 |
-
"umapMinDist": 0.15,
|
196 |
-
"pcaNormalization": None,
|
197 |
-
"umapMenuLocalGlobalBalance": None,
|
198 |
-
"umapMenuIsAdvanced": False
|
199 |
-
}
|
200 |
-
},
|
201 |
-
{
|
202 |
-
"kind": "widget",
|
203 |
-
"name": "Scatter Plot",
|
204 |
-
"type": "scatterplot",
|
205 |
-
"config": {
|
206 |
-
"xAxisColumn": None,
|
207 |
-
"yAxisColumn": None,
|
208 |
-
"colorBy": None,
|
209 |
-
"sizeBy": None,
|
210 |
-
"filter": False
|
211 |
-
}
|
212 |
-
},
|
213 |
-
{
|
214 |
-
"kind": "widget",
|
215 |
-
"name": "Histogram",
|
216 |
-
"type": "histogram",
|
217 |
-
"config": {
|
218 |
-
"columnKey": None,
|
219 |
-
"stackByColumnKey": None,
|
220 |
-
"filter": False
|
221 |
-
}
|
222 |
-
}
|
223 |
-
]
|
224 |
-
}
|
225 |
-
]
|
226 |
-
},
|
227 |
-
{
|
228 |
-
"kind": "tab",
|
229 |
-
"weight": 48.03536345776031,
|
230 |
-
"children": [
|
231 |
-
{
|
232 |
-
"kind": "widget",
|
233 |
-
"name": "Inspector",
|
234 |
-
"type": "inspector",
|
235 |
-
"config": {
|
236 |
-
"views": [
|
237 |
-
{
|
238 |
-
"view": "AudioView",
|
239 |
-
"columns": [
|
240 |
-
"audio"
|
241 |
-
],
|
242 |
-
"name": "view",
|
243 |
-
"key": "9c37fe2d-6305-436b-b944-30dbda7b1f4d"
|
244 |
-
},
|
245 |
-
{
|
246 |
-
"view": "SpectrogramView",
|
247 |
-
"columns": [
|
248 |
-
"audio"
|
249 |
-
],
|
250 |
-
"name": "view",
|
251 |
-
"key": "9e676bb9-0b21-4214-806f-4e8c0f6db4c3"
|
252 |
-
}
|
253 |
-
],
|
254 |
-
"visibleColumns": 4
|
255 |
-
}
|
256 |
-
}
|
257 |
-
]
|
258 |
-
}
|
259 |
-
]
|
260 |
-
},
|
261 |
-
"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}}]}]},
|
262 |
-
"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"}}]}]}]},
|
263 |
}
|
264 |
|
265 |
SPOTLIGHT_RENAME = {
|
|
|
121 |
|
122 |
|
123 |
SPOTLIGHT_LAYOUTS = {
|
124 |
+
"standard": {"orientation":"vertical","children":[{"kind":"split","weight":51.96463654223969,"orientation":"horizontal","children":[{"kind":"tab","weight":30,"children":[{"kind":"widget","name":"Table","type":"table","config":{"tableView":"full","visibleColumns":["class","class_name","config","d1p","d1v","d2p","d2v","d3p","d3v","file_path","label","section","split"],"sorting":None,"orderByRelevance":False}}]},{"kind":"tab","weight":33.970588235294116,"children":[{"kind":"widget","name":"Similarity Map (2)","type":"similaritymap","config":{"placeBy":None,"reductionMethod":None,"colorBy":"label","sizeBy":None,"filter":False,"umapNNeighbors":20,"umapMetric":None,"umapMinDist":0.15,"pcaNormalization":None,"umapMenuLocalGlobalBalance":None,"umapMenuIsAdvanced":False}}]},{"kind":"tab","weight":36.029411764705884,"children":[{"kind":"widget","name":"Similarity Map","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":None,"stackByColumnKey":None,"filter":False}}]}]},{"kind":"tab","weight":48.03536345776031,"children":[{"kind":"widget","name":"Inspector","type":"inspector","config":{"views":[{"view":"AudioView","columns":["path"],"name":"view","key":"43a5beff-9423-41c9-a5ba-285a7ece7a02"},{"view":"SpectrogramView","columns":["path"],"name":"view","key":"5f035027-dd02-4587-ba77-defdf823c124"}],"visibleColumns":4}}]}]},
|
125 |
+
"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","dev_train_lof_anomaly","dev_train_lof_anomaly_score","domain","label","section"],"sorting":None,"orderByRelevance":False}}]},{"kind":"tab","weight":33.869200490640154,"children":[{"kind":"widget","name":"Similarity map with AST-lof anomaly score","type":"similaritymap","config":{"placeBy":None,"reductionMethod":None,"colorBy":"dev_train_lof_anomaly_score","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}}]}]},
|
126 |
+
"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","dev_train_lof_anomaly","dev_train_lof_anomaly_score","domain","label","section"],"sorting":None,"orderByRelevance":False}}]},{"kind":"tab","weight":33.869200490640154,"children":[{"kind":"widget","name":"Similarity map with AST-lof anomaly score","type":"similaritymap","config":{"placeBy":None,"reductionMethod":None,"colorBy":"dev_train_lof_anomaly_score","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":"split","weight":45.854483925549914,"orientation":"horizontal","children":[{"kind":"tab","weight":58.581483486735245,"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":41.418516513264755,"children":[{"kind":"widget","name":"Histogram","type":"histogram","config":{"columnKey":"class","stackByColumnKey":"dev_train_lof_anomaly"}}]}]}]},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
}
|
128 |
|
129 |
SPOTLIGHT_RENAME = {
|