Syoy commited on
Commit
2351115
1 Parent(s): b23752f

addded new layout

Browse files
Files changed (1) hide show
  1. dcase23-task2-enriched.py +138 -25
dcase23-task2-enriched.py CHANGED
@@ -116,32 +116,145 @@ DATASET = {
116
  'eval': 'DCASE 2023 Challenge Task 2 Evaluation Dataset',
117
  }
118
 
 
119
  SPOTLIGHT_LAYOUTS = {
120
- "standard": {"orientation": "vertical", "children": [
121
- {"kind": "split", "weight": 51.96463654223969, "orientation": "horizontal", "children": [
122
- {"kind": "tab", "weight": 60, "children": [{"kind": "widget", "name": "Table", "type": "table",
123
- "config": {"tableView": "full",
124
- "visibleColumns": ["class", "class_name", "config",
125
- "d1p", "d1v", "d2p", "d2v", "d3p",
126
- "d3v", "file_path", "label",
127
- "section", "split"],
128
- "sorting": None, "orderByRelevance": False}}]},
129
- {"kind": "tab", "weight": 40, "children": [
130
- {"kind": "widget", "name": "Similarity Map", "type": "similaritymap",
131
- "config": {"placeBy": None, "reductionMethod": None, "colorBy": None, "sizeBy": None, "filter": False,
132
- "umapNNeighbors": None, "umapMetric": None, "umapMinDist": None, "pcaNormalization": None,
133
- "umapMenuLocalGlobalBalance": None, "umapMenuIsAdvanced": False}},
134
- {"kind": "widget", "name": "Scatter Plot", "type": "scatterplot",
135
- "config": {"xAxisColumn": None, "yAxisColumn": None, "colorBy": None, "sizeBy": None,
136
- "filter": False}}, {"kind": "widget", "name": "Histogram", "type": "histogram",
137
- "config": {"columnKey": None, "stackByColumnKey": None,
138
- "filter": False}}]}]},
139
- {"kind": "tab", "weight": 48.03536345776031, "children": [
140
- {"kind": "widget", "name": "Inspector", "type": "inspector", "config": {"views": [
141
- {"view": "AudioView", "columns": ["audio"], "name": "view",
142
- "key": "9c37fe2d-6305-436b-b944-30dbda7b1f4d"},
143
- {"view": "SpectrogramView", "columns": ["audio"], "name": "view",
144
- "key": "9e676bb9-0b21-4214-806f-4e8c0f6db4c3"}], "visibleColumns": 4}}]}]}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  }
146
 
147
  SPOTLIGHT_RENAME = {
 
116
  'eval': 'DCASE 2023 Challenge Task 2 Evaluation Dataset',
117
  }
118
 
119
+
120
  SPOTLIGHT_LAYOUTS = {
121
+ "standard": {
122
+ "orientation": "vertical",
123
+ "children": [
124
+ {
125
+ "kind": "split",
126
+ "weight": 51.96463654223969,
127
+ "orientation": "horizontal",
128
+ "children": [
129
+ {
130
+ "kind": "tab",
131
+ "weight": 30,
132
+ "children": [
133
+ {
134
+ "kind": "widget",
135
+ "name": "Table",
136
+ "type": "table",
137
+ "config": {
138
+ "tableView": "full",
139
+ "visibleColumns": [
140
+ "class",
141
+ "class_name",
142
+ "config",
143
+ "d1p",
144
+ "d1v",
145
+ "d2p",
146
+ "d2v",
147
+ "d3p",
148
+ "d3v",
149
+ "file_path",
150
+ "label",
151
+ "section",
152
+ "split"
153
+ ],
154
+ "sorting": None,
155
+ "orderByRelevance": False
156
+ }
157
+ }
158
+ ]
159
+ },
160
+ {
161
+ "kind": "tab",
162
+ "weight": 33.970588235294116,
163
+ "children": [
164
+ {
165
+ "kind": "widget",
166
+ "name": "Similarity Map (2)",
167
+ "type": "similaritymap",
168
+ "config": {
169
+ "umapNNeighbors": 20,
170
+ "umapMinDist": 0.15,
171
+ "colorBy": "label"
172
+ }
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ "kind": "tab",
178
+ "weight": 36.029411764705884,
179
+ "children": [
180
+ {
181
+ "kind": "widget",
182
+ "name": "Similarity Map",
183
+ "type": "similaritymap",
184
+ "config": {
185
+ "placeBy": None,
186
+ "reductionMethod": None,
187
+ "colorBy": "class_name",
188
+ "sizeBy": None,
189
+ "filter": False,
190
+ "umapNNeighbors": 20,
191
+ "umapMetric": None,
192
+ "umapMinDist": 0.15,
193
+ "pcaNormalization": None,
194
+ "umapMenuLocalGlobalBalance": None,
195
+ "umapMenuIsAdvanced": False
196
+ }
197
+ },
198
+ {
199
+ "kind": "widget",
200
+ "name": "Scatter Plot",
201
+ "type": "scatterplot",
202
+ "config": {
203
+ "xAxisColumn": None,
204
+ "yAxisColumn": None,
205
+ "colorBy": None,
206
+ "sizeBy": None,
207
+ "filter": False
208
+ }
209
+ },
210
+ {
211
+ "kind": "widget",
212
+ "name": "Histogram",
213
+ "type": "histogram",
214
+ "config": {
215
+ "columnKey": None,
216
+ "stackByColumnKey": None,
217
+ "filter": False
218
+ }
219
+ }
220
+ ]
221
+ }
222
+ ]
223
+ },
224
+ {
225
+ "kind": "tab",
226
+ "weight": 48.03536345776031,
227
+ "children": [
228
+ {
229
+ "kind": "widget",
230
+ "name": "Inspector",
231
+ "type": "inspector",
232
+ "config": {
233
+ "views": [
234
+ {
235
+ "view": "AudioView",
236
+ "columns": [
237
+ "audio"
238
+ ],
239
+ "name": "view",
240
+ "key": "9c37fe2d-6305-436b-b944-30dbda7b1f4d"
241
+ },
242
+ {
243
+ "view": "SpectrogramView",
244
+ "columns": [
245
+ "audio"
246
+ ],
247
+ "name": "view",
248
+ "key": "9e676bb9-0b21-4214-806f-4e8c0f6db4c3"
249
+ }
250
+ ],
251
+ "visibleColumns": 4
252
+ }
253
+ }
254
+ ]
255
+ }
256
+ ]
257
+ },
258
  }
259
 
260
  SPOTLIGHT_RENAME = {