vasi0050 commited on
Commit
eb2e35f
·
verified ·
1 Parent(s): d9803b0

Upload conv_antarctis.ipynb

Browse files
Files changed (1) hide show
  1. conv_antarctis.ipynb +8 -452
conv_antarctis.ipynb CHANGED
@@ -2,7 +2,7 @@
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
- "execution_count": 2,
6
  "id": "e7e09770",
7
  "metadata": {},
8
  "outputs": [],
@@ -17,7 +17,7 @@
17
  },
18
  {
19
  "cell_type": "code",
20
- "execution_count": 3,
21
  "id": "797deb25",
22
  "metadata": {},
23
  "outputs": [],
@@ -27,439 +27,23 @@
27
  },
28
  {
29
  "cell_type": "code",
30
- "execution_count": 4,
31
  "id": "399483a9",
32
  "metadata": {},
33
  "outputs": [
34
  {
35
  "data": {
36
- "text/html": [
37
- "<div><svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\">\n",
38
- "<defs>\n",
39
- "<symbol id=\"icon-database\" viewBox=\"0 0 32 32\">\n",
40
- "<path d=\"M16 0c-8.837 0-16 2.239-16 5v4c0 2.761 7.163 5 16 5s16-2.239 16-5v-4c0-2.761-7.163-5-16-5z\"></path>\n",
41
- "<path d=\"M16 17c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
42
- "<path d=\"M16 26c-8.837 0-16-2.239-16-5v6c0 2.761 7.163 5 16 5s16-2.239 16-5v-6c0 2.761-7.163 5-16 5z\"></path>\n",
43
- "</symbol>\n",
44
- "<symbol id=\"icon-file-text2\" viewBox=\"0 0 32 32\">\n",
45
- "<path d=\"M28.681 7.159c-0.694-0.947-1.662-2.053-2.724-3.116s-2.169-2.030-3.116-2.724c-1.612-1.182-2.393-1.319-2.841-1.319h-15.5c-1.378 0-2.5 1.121-2.5 2.5v27c0 1.378 1.122 2.5 2.5 2.5h23c1.378 0 2.5-1.122 2.5-2.5v-19.5c0-0.448-0.137-1.23-1.319-2.841zM24.543 5.457c0.959 0.959 1.712 1.825 2.268 2.543h-4.811v-4.811c0.718 0.556 1.584 1.309 2.543 2.268zM28 29.5c0 0.271-0.229 0.5-0.5 0.5h-23c-0.271 0-0.5-0.229-0.5-0.5v-27c0-0.271 0.229-0.5 0.5-0.5 0 0 15.499-0 15.5 0v7c0 0.552 0.448 1 1 1h7v19.5z\"></path>\n",
46
- "<path d=\"M23 26h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
47
- "<path d=\"M23 22h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
48
- "<path d=\"M23 18h-14c-0.552 0-1-0.448-1-1s0.448-1 1-1h14c0.552 0 1 0.448 1 1s-0.448 1-1 1z\"></path>\n",
49
- "</symbol>\n",
50
- "</defs>\n",
51
- "</svg>\n",
52
- "<style>/* CSS stylesheet for displaying xarray objects in jupyterlab.\n",
53
- " *\n",
54
- " */\n",
55
- "\n",
56
- ":root {\n",
57
- " --xr-font-color0: var(--jp-content-font-color0, rgba(0, 0, 0, 1));\n",
58
- " --xr-font-color2: var(--jp-content-font-color2, rgba(0, 0, 0, 0.54));\n",
59
- " --xr-font-color3: var(--jp-content-font-color3, rgba(0, 0, 0, 0.38));\n",
60
- " --xr-border-color: var(--jp-border-color2, #e0e0e0);\n",
61
- " --xr-disabled-color: var(--jp-layout-color3, #bdbdbd);\n",
62
- " --xr-background-color: var(--jp-layout-color0, white);\n",
63
- " --xr-background-color-row-even: var(--jp-layout-color1, white);\n",
64
- " --xr-background-color-row-odd: var(--jp-layout-color2, #eeeeee);\n",
65
- "}\n",
66
- "\n",
67
- "html[theme=\"dark\"],\n",
68
- "html[data-theme=\"dark\"],\n",
69
- "body[data-theme=\"dark\"],\n",
70
- "body.vscode-dark {\n",
71
- " --xr-font-color0: rgba(255, 255, 255, 1);\n",
72
- " --xr-font-color2: rgba(255, 255, 255, 0.54);\n",
73
- " --xr-font-color3: rgba(255, 255, 255, 0.38);\n",
74
- " --xr-border-color: #1f1f1f;\n",
75
- " --xr-disabled-color: #515151;\n",
76
- " --xr-background-color: #111111;\n",
77
- " --xr-background-color-row-even: #111111;\n",
78
- " --xr-background-color-row-odd: #313131;\n",
79
- "}\n",
80
- "\n",
81
- ".xr-wrap {\n",
82
- " display: block !important;\n",
83
- " min-width: 300px;\n",
84
- " max-width: 700px;\n",
85
- "}\n",
86
- "\n",
87
- ".xr-text-repr-fallback {\n",
88
- " /* fallback to plain text repr when CSS is not injected (untrusted notebook) */\n",
89
- " display: none;\n",
90
- "}\n",
91
- "\n",
92
- ".xr-header {\n",
93
- " padding-top: 6px;\n",
94
- " padding-bottom: 6px;\n",
95
- " margin-bottom: 4px;\n",
96
- " border-bottom: solid 1px var(--xr-border-color);\n",
97
- "}\n",
98
- "\n",
99
- ".xr-header > div,\n",
100
- ".xr-header > ul {\n",
101
- " display: inline;\n",
102
- " margin-top: 0;\n",
103
- " margin-bottom: 0;\n",
104
- "}\n",
105
- "\n",
106
- ".xr-obj-type,\n",
107
- ".xr-array-name {\n",
108
- " margin-left: 2px;\n",
109
- " margin-right: 10px;\n",
110
- "}\n",
111
- "\n",
112
- ".xr-obj-type {\n",
113
- " color: var(--xr-font-color2);\n",
114
- "}\n",
115
- "\n",
116
- ".xr-sections {\n",
117
- " padding-left: 0 !important;\n",
118
- " display: grid;\n",
119
- " grid-template-columns: 150px auto auto 1fr 0 20px 0 20px;\n",
120
- "}\n",
121
- "\n",
122
- ".xr-section-item {\n",
123
- " display: contents;\n",
124
- "}\n",
125
- "\n",
126
- ".xr-section-item input {\n",
127
- " display: inline-block;\n",
128
- " opacity: 0;\n",
129
- " height: 0;\n",
130
- "}\n",
131
- "\n",
132
- ".xr-section-item input + label {\n",
133
- " color: var(--xr-disabled-color);\n",
134
- "}\n",
135
- "\n",
136
- ".xr-section-item input:enabled + label {\n",
137
- " cursor: pointer;\n",
138
- " color: var(--xr-font-color2);\n",
139
- "}\n",
140
- "\n",
141
- ".xr-section-item input:focus + label {\n",
142
- " border: 2px solid var(--xr-font-color0);\n",
143
- "}\n",
144
- "\n",
145
- ".xr-section-item input:enabled + label:hover {\n",
146
- " color: var(--xr-font-color0);\n",
147
- "}\n",
148
- "\n",
149
- ".xr-section-summary {\n",
150
- " grid-column: 1;\n",
151
- " color: var(--xr-font-color2);\n",
152
- " font-weight: 500;\n",
153
- "}\n",
154
- "\n",
155
- ".xr-section-summary > span {\n",
156
- " display: inline-block;\n",
157
- " padding-left: 0.5em;\n",
158
- "}\n",
159
- "\n",
160
- ".xr-section-summary-in:disabled + label {\n",
161
- " color: var(--xr-font-color2);\n",
162
- "}\n",
163
- "\n",
164
- ".xr-section-summary-in + label:before {\n",
165
- " display: inline-block;\n",
166
- " content: \"►\";\n",
167
- " font-size: 11px;\n",
168
- " width: 15px;\n",
169
- " text-align: center;\n",
170
- "}\n",
171
- "\n",
172
- ".xr-section-summary-in:disabled + label:before {\n",
173
- " color: var(--xr-disabled-color);\n",
174
- "}\n",
175
- "\n",
176
- ".xr-section-summary-in:checked + label:before {\n",
177
- " content: \"▼\";\n",
178
- "}\n",
179
- "\n",
180
- ".xr-section-summary-in:checked + label > span {\n",
181
- " display: none;\n",
182
- "}\n",
183
- "\n",
184
- ".xr-section-summary,\n",
185
- ".xr-section-inline-details {\n",
186
- " padding-top: 4px;\n",
187
- " padding-bottom: 4px;\n",
188
- "}\n",
189
- "\n",
190
- ".xr-section-inline-details {\n",
191
- " grid-column: 2 / -1;\n",
192
- "}\n",
193
- "\n",
194
- ".xr-section-details {\n",
195
- " display: none;\n",
196
- " grid-column: 1 / -1;\n",
197
- " margin-bottom: 5px;\n",
198
- "}\n",
199
- "\n",
200
- ".xr-section-summary-in:checked ~ .xr-section-details {\n",
201
- " display: contents;\n",
202
- "}\n",
203
- "\n",
204
- ".xr-array-wrap {\n",
205
- " grid-column: 1 / -1;\n",
206
- " display: grid;\n",
207
- " grid-template-columns: 20px auto;\n",
208
- "}\n",
209
- "\n",
210
- ".xr-array-wrap > label {\n",
211
- " grid-column: 1;\n",
212
- " vertical-align: top;\n",
213
- "}\n",
214
- "\n",
215
- ".xr-preview {\n",
216
- " color: var(--xr-font-color3);\n",
217
- "}\n",
218
- "\n",
219
- ".xr-array-preview,\n",
220
- ".xr-array-data {\n",
221
- " padding: 0 5px !important;\n",
222
- " grid-column: 2;\n",
223
- "}\n",
224
- "\n",
225
- ".xr-array-data,\n",
226
- ".xr-array-in:checked ~ .xr-array-preview {\n",
227
- " display: none;\n",
228
- "}\n",
229
- "\n",
230
- ".xr-array-in:checked ~ .xr-array-data,\n",
231
- ".xr-array-preview {\n",
232
- " display: inline-block;\n",
233
- "}\n",
234
- "\n",
235
- ".xr-dim-list {\n",
236
- " display: inline-block !important;\n",
237
- " list-style: none;\n",
238
- " padding: 0 !important;\n",
239
- " margin: 0;\n",
240
- "}\n",
241
- "\n",
242
- ".xr-dim-list li {\n",
243
- " display: inline-block;\n",
244
- " padding: 0;\n",
245
- " margin: 0;\n",
246
- "}\n",
247
- "\n",
248
- ".xr-dim-list:before {\n",
249
- " content: \"(\";\n",
250
- "}\n",
251
- "\n",
252
- ".xr-dim-list:after {\n",
253
- " content: \")\";\n",
254
- "}\n",
255
- "\n",
256
- ".xr-dim-list li:not(:last-child):after {\n",
257
- " content: \",\";\n",
258
- " padding-right: 5px;\n",
259
- "}\n",
260
- "\n",
261
- ".xr-has-index {\n",
262
- " font-weight: bold;\n",
263
- "}\n",
264
- "\n",
265
- ".xr-var-list,\n",
266
- ".xr-var-item {\n",
267
- " display: contents;\n",
268
- "}\n",
269
- "\n",
270
- ".xr-var-item > div,\n",
271
- ".xr-var-item label,\n",
272
- ".xr-var-item > .xr-var-name span {\n",
273
- " background-color: var(--xr-background-color-row-even);\n",
274
- " margin-bottom: 0;\n",
275
- "}\n",
276
- "\n",
277
- ".xr-var-item > .xr-var-name:hover span {\n",
278
- " padding-right: 5px;\n",
279
- "}\n",
280
- "\n",
281
- ".xr-var-list > li:nth-child(odd) > div,\n",
282
- ".xr-var-list > li:nth-child(odd) > label,\n",
283
- ".xr-var-list > li:nth-child(odd) > .xr-var-name span {\n",
284
- " background-color: var(--xr-background-color-row-odd);\n",
285
- "}\n",
286
- "\n",
287
- ".xr-var-name {\n",
288
- " grid-column: 1;\n",
289
- "}\n",
290
- "\n",
291
- ".xr-var-dims {\n",
292
- " grid-column: 2;\n",
293
- "}\n",
294
- "\n",
295
- ".xr-var-dtype {\n",
296
- " grid-column: 3;\n",
297
- " text-align: right;\n",
298
- " color: var(--xr-font-color2);\n",
299
- "}\n",
300
- "\n",
301
- ".xr-var-preview {\n",
302
- " grid-column: 4;\n",
303
- "}\n",
304
- "\n",
305
- ".xr-index-preview {\n",
306
- " grid-column: 2 / 5;\n",
307
- " color: var(--xr-font-color2);\n",
308
- "}\n",
309
- "\n",
310
- ".xr-var-name,\n",
311
- ".xr-var-dims,\n",
312
- ".xr-var-dtype,\n",
313
- ".xr-preview,\n",
314
- ".xr-attrs dt {\n",
315
- " white-space: nowrap;\n",
316
- " overflow: hidden;\n",
317
- " text-overflow: ellipsis;\n",
318
- " padding-right: 10px;\n",
319
- "}\n",
320
- "\n",
321
- ".xr-var-name:hover,\n",
322
- ".xr-var-dims:hover,\n",
323
- ".xr-var-dtype:hover,\n",
324
- ".xr-attrs dt:hover {\n",
325
- " overflow: visible;\n",
326
- " width: auto;\n",
327
- " z-index: 1;\n",
328
- "}\n",
329
- "\n",
330
- ".xr-var-attrs,\n",
331
- ".xr-var-data,\n",
332
- ".xr-index-data {\n",
333
- " display: none;\n",
334
- " background-color: var(--xr-background-color) !important;\n",
335
- " padding-bottom: 5px !important;\n",
336
- "}\n",
337
- "\n",
338
- ".xr-var-attrs-in:checked ~ .xr-var-attrs,\n",
339
- ".xr-var-data-in:checked ~ .xr-var-data,\n",
340
- ".xr-index-data-in:checked ~ .xr-index-data {\n",
341
- " display: block;\n",
342
- "}\n",
343
- "\n",
344
- ".xr-var-data > table {\n",
345
- " float: right;\n",
346
- "}\n",
347
- "\n",
348
- ".xr-var-name span,\n",
349
- ".xr-var-data,\n",
350
- ".xr-index-name div,\n",
351
- ".xr-index-data,\n",
352
- ".xr-attrs {\n",
353
- " padding-left: 25px !important;\n",
354
- "}\n",
355
- "\n",
356
- ".xr-attrs,\n",
357
- ".xr-var-attrs,\n",
358
- ".xr-var-data,\n",
359
- ".xr-index-data {\n",
360
- " grid-column: 1 / -1;\n",
361
- "}\n",
362
- "\n",
363
- "dl.xr-attrs {\n",
364
- " padding: 0;\n",
365
- " margin: 0;\n",
366
- " display: grid;\n",
367
- " grid-template-columns: 125px auto;\n",
368
- "}\n",
369
- "\n",
370
- ".xr-attrs dt,\n",
371
- ".xr-attrs dd {\n",
372
- " padding: 0;\n",
373
- " margin: 0;\n",
374
- " float: left;\n",
375
- " padding-right: 10px;\n",
376
- " width: auto;\n",
377
- "}\n",
378
- "\n",
379
- ".xr-attrs dt {\n",
380
- " font-weight: normal;\n",
381
- " grid-column: 1;\n",
382
- "}\n",
383
- "\n",
384
- ".xr-attrs dt:hover span {\n",
385
- " display: inline-block;\n",
386
- " background: var(--xr-background-color);\n",
387
- " padding-right: 10px;\n",
388
- "}\n",
389
- "\n",
390
- ".xr-attrs dd {\n",
391
- " grid-column: 2;\n",
392
- " white-space: pre-wrap;\n",
393
- " word-break: break-all;\n",
394
- "}\n",
395
- "\n",
396
- ".xr-icon-database,\n",
397
- ".xr-icon-file-text2,\n",
398
- ".xr-no-icon {\n",
399
- " display: inline-block;\n",
400
- " vertical-align: middle;\n",
401
- " width: 1em;\n",
402
- " height: 1.5em !important;\n",
403
- " stroke-width: 0;\n",
404
- " stroke: currentColor;\n",
405
- " fill: currentColor;\n",
406
- "}\n",
407
- "</style><pre class='xr-text-repr-fallback'>&lt;xarray.Dataset&gt; Size: 298MB\n",
408
- "Dimensions: (sample: 99766, x: 27, y: 27)\n",
409
- "Coordinates:\n",
410
- " * sample (sample) int32 399kB 0 1 2 3 4 5 ... 99761 99762 99763 99764 99765\n",
411
- " * x (x) int32 108B 0 1 2 3 4 5 6 7 8 9 ... 18 19 20 21 22 23 24 25 26\n",
412
- " * y (y) int32 108B 0 1 2 3 4 5 6 7 8 9 ... 18 19 20 21 22 23 24 25 26\n",
413
- "Data variables:\n",
414
- " images (sample, x, y) float32 291MB ...\n",
415
- " labels (sample) float64 798kB ...\n",
416
- " vx (sample) float64 798kB ...\n",
417
- " vy (sample) float64 798kB ...\n",
418
- " v (sample) float64 798kB ...\n",
419
- " smb (sample) float64 798kB ...\n",
420
- " z (sample) float64 798kB ...\n",
421
- " s (sample) float64 798kB ...\n",
422
- " temp (sample) float64 798kB ...\n",
423
- "Attributes:\n",
424
- " description: CNN data with elevation images. Scalar features are everyth...</pre><div class='xr-wrap' style='display:none'><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-fab5bf5f-0a7d-4400-9852-9cd302ea8d15' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-fab5bf5f-0a7d-4400-9852-9cd302ea8d15' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span class='xr-has-index'>sample</span>: 99766</li><li><span class='xr-has-index'>x</span>: 27</li><li><span class='xr-has-index'>y</span>: 27</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-32eaaf35-a186-4c6a-abb9-8a144e59074f' class='xr-section-summary-in' type='checkbox' checked><label for='section-32eaaf35-a186-4c6a-abb9-8a144e59074f' class='xr-section-summary' >Coordinates: <span>(3)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>sample</span></div><div class='xr-var-dims'>(sample)</div><div class='xr-var-dtype'>int32</div><div class='xr-var-preview xr-preview'>0 1 2 3 ... 99762 99763 99764 99765</div><input id='attrs-a6eec0d7-e6f1-4f5c-8e5d-b836533cb8a7' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-a6eec0d7-e6f1-4f5c-8e5d-b836533cb8a7' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-64e68426-0acf-4eac-9742-761d80fcc80f' class='xr-var-data-in' type='checkbox'><label for='data-64e68426-0acf-4eac-9742-761d80fcc80f' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, ..., 99763, 99764, 99765], dtype=int32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>x</span></div><div class='xr-var-dims'>(x)</div><div class='xr-var-dtype'>int32</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 6 ... 21 22 23 24 25 26</div><input id='attrs-a0867e38-ba6f-4e90-9e71-e7c7ccda4557' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-a0867e38-ba6f-4e90-9e71-e7c7ccda4557' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-3dcb1984-8e80-49a2-a5e7-c33fd0eb7a2d' class='xr-var-data-in' type='checkbox'><label for='data-3dcb1984-8e80-49a2-a5e7-c33fd0eb7a2d' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,\n",
425
- " 18, 19, 20, 21, 22, 23, 24, 25, 26], dtype=int32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>y</span></div><div class='xr-var-dims'>(y)</div><div class='xr-var-dtype'>int32</div><div class='xr-var-preview xr-preview'>0 1 2 3 4 5 6 ... 21 22 23 24 25 26</div><input id='attrs-cc877b04-3a3a-4b34-8a04-148b7d84b512' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-cc877b04-3a3a-4b34-8a04-148b7d84b512' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4d66f639-4bfb-4b40-92b5-64a39192a15e' class='xr-var-data-in' type='checkbox'><label for='data-4d66f639-4bfb-4b40-92b5-64a39192a15e' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,\n",
426
- " 18, 19, 20, 21, 22, 23, 24, 25, 26], dtype=int32)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-3fec3564-48df-489e-a141-577c0013a24b' class='xr-section-summary-in' type='checkbox' checked><label for='section-3fec3564-48df-489e-a141-577c0013a24b' class='xr-section-summary' >Data variables: <span>(9)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>images</span></div><div class='xr-var-dims'>(sample, x, y)</div><div class='xr-var-dtype'>float32</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-e2df5768-3102-4b29-9bc2-be35d33a0e92' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-e2df5768-3102-4b29-9bc2-be35d33a0e92' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-3a227dc8-87af-498f-b77f-bdb4aa284ac2' class='xr-var-data-in' type='checkbox'><label for='data-3a227dc8-87af-498f-b77f-bdb4aa284ac2' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>[72729414 values with dtype=float32]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>labels</span></div><div class='xr-var-dims'>(sample)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-ca1f5cab-5812-4d9a-ad29-a9c07a924305' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-ca1f5cab-5812-4d9a-ad29-a9c07a924305' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9b067e1b-1ecc-453e-88be-2aaf047146c2' class='xr-var-data-in' type='checkbox'><label for='data-9b067e1b-1ecc-453e-88be-2aaf047146c2' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>[99766 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>vx</span></div><div class='xr-var-dims'>(sample)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-722431de-0cd2-4da9-af31-f1b7119d1a7c' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-722431de-0cd2-4da9-af31-f1b7119d1a7c' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-ade58dfa-9d6b-42d7-a700-9c68abaafaca' class='xr-var-data-in' type='checkbox'><label for='data-ade58dfa-9d6b-42d7-a700-9c68abaafaca' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>[99766 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>vy</span></div><div class='xr-var-dims'>(sample)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-debf125e-6404-474a-909c-b0b1a37e66d8' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-debf125e-6404-474a-909c-b0b1a37e66d8' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-2e73d079-8279-41ba-bb33-ae8a36fd4b08' class='xr-var-data-in' type='checkbox'><label for='data-2e73d079-8279-41ba-bb33-ae8a36fd4b08' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>[99766 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>v</span></div><div class='xr-var-dims'>(sample)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-cfe7b680-4202-4450-aff7-6936810cea1e' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-cfe7b680-4202-4450-aff7-6936810cea1e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-97bd7ed7-8130-4e75-bdcf-ee9fe9019e2f' class='xr-var-data-in' type='checkbox'><label for='data-97bd7ed7-8130-4e75-bdcf-ee9fe9019e2f' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>[99766 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>smb</span></div><div class='xr-var-dims'>(sample)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-74285667-e694-4834-803b-5100f1a32d9e' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-74285667-e694-4834-803b-5100f1a32d9e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-60b09bc6-7c29-4b37-a062-2eccf148c095' class='xr-var-data-in' type='checkbox'><label for='data-60b09bc6-7c29-4b37-a062-2eccf148c095' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>[99766 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>z</span></div><div class='xr-var-dims'>(sample)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-5d347239-c032-4499-91d0-1cf1aa488528' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-5d347239-c032-4499-91d0-1cf1aa488528' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-8966847d-0277-4575-ba90-d52c85bb412c' class='xr-var-data-in' type='checkbox'><label for='data-8966847d-0277-4575-ba90-d52c85bb412c' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>[99766 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>s</span></div><div class='xr-var-dims'>(sample)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-392665da-bd3d-4155-961b-631d62d716c6' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-392665da-bd3d-4155-961b-631d62d716c6' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-b606ad7f-0b0b-42a9-8304-c4150286b739' class='xr-var-data-in' type='checkbox'><label for='data-b606ad7f-0b0b-42a9-8304-c4150286b739' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>[99766 values with dtype=float64]</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>temp</span></div><div class='xr-var-dims'>(sample)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>...</div><input id='attrs-6005ba2c-9dd4-4301-895d-c1aecbfc9ee7' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-6005ba2c-9dd4-4301-895d-c1aecbfc9ee7' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-3ff47092-653a-4607-b7b1-38cbdf42298e' class='xr-var-data-in' type='checkbox'><label for='data-3ff47092-653a-4607-b7b1-38cbdf42298e' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>[99766 values with dtype=float64]</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-fbae0e61-2071-4748-a7fa-d498d307aae7' class='xr-section-summary-in' type='checkbox' ><label for='section-fbae0e61-2071-4748-a7fa-d498d307aae7' class='xr-section-summary' >Indexes: <span>(3)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-index-name'><div>sample</div></div><div class='xr-index-preview'>PandasIndex</div><input type='checkbox' disabled/><label></label><input id='index-642735e3-9763-450c-9a72-a1029a9a77df' class='xr-index-data-in' type='checkbox'/><label for='index-642735e3-9763-450c-9a72-a1029a9a77df' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,\n",
427
- " ...\n",
428
- " 99756, 99757, 99758, 99759, 99760, 99761, 99762, 99763, 99764, 99765],\n",
429
- " dtype=&#x27;int32&#x27;, name=&#x27;sample&#x27;, length=99766))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>x</div></div><div class='xr-index-preview'>PandasIndex</div><input type='checkbox' disabled/><label></label><input id='index-c585363f-c838-466b-b11d-352984aa5815' class='xr-index-data-in' type='checkbox'/><label for='index-c585363f-c838-466b-b11d-352984aa5815' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,\n",
430
- " 18, 19, 20, 21, 22, 23, 24, 25, 26],\n",
431
- " dtype=&#x27;int32&#x27;, name=&#x27;x&#x27;))</pre></div></li><li class='xr-var-item'><div class='xr-index-name'><div>y</div></div><div class='xr-index-preview'>PandasIndex</div><input type='checkbox' disabled/><label></label><input id='index-23e0ae6e-a712-4383-8abb-b724f92a23e5' class='xr-index-data-in' type='checkbox'/><label for='index-23e0ae6e-a712-4383-8abb-b724f92a23e5' title='Show/Hide index repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-index-data'><pre>PandasIndex(Index([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,\n",
432
- " 18, 19, 20, 21, 22, 23, 24, 25, 26],\n",
433
- " dtype=&#x27;int32&#x27;, name=&#x27;y&#x27;))</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-5f85e146-1571-4421-9a55-fd6c39297966' class='xr-section-summary-in' type='checkbox' checked><label for='section-5f85e146-1571-4421-9a55-fd6c39297966' class='xr-section-summary' >Attributes: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>description :</span></dt><dd>CNN data with elevation images. Scalar features are everything from Niccolo 30M parquet. Images are 27x27 pixels.</dd></dl></div></li></ul></div></div>"
434
- ],
435
  "text/plain": [
436
- "<xarray.Dataset> Size: 298MB\n",
437
- "Dimensions: (sample: 99766, x: 27, y: 27)\n",
438
- "Coordinates:\n",
439
- " * sample (sample) int32 399kB 0 1 2 3 4 5 ... 99761 99762 99763 99764 99765\n",
440
- " * x (x) int32 108B 0 1 2 3 4 5 6 7 8 9 ... 18 19 20 21 22 23 24 25 26\n",
441
- " * y (y) int32 108B 0 1 2 3 4 5 6 7 8 9 ... 18 19 20 21 22 23 24 25 26\n",
442
- "Data variables:\n",
443
- " images (sample, x, y) float32 291MB ...\n",
444
- " labels (sample) float64 798kB ...\n",
445
- " vx (sample) float64 798kB ...\n",
446
- " vy (sample) float64 798kB ...\n",
447
- " v (sample) float64 798kB ...\n",
448
- " smb (sample) float64 798kB ...\n",
449
- " z (sample) float64 798kB ...\n",
450
- " s (sample) float64 798kB ...\n",
451
- " temp (sample) float64 798kB ...\n",
452
- "Attributes:\n",
453
- " description: CNN data with elevation images. Scalar features are everyth..."
454
  ]
455
  },
456
- "execution_count": 4,
457
  "metadata": {},
458
  "output_type": "execute_result"
459
  }
460
  ],
461
  "source": [
462
- "data"
463
  ]
464
  },
465
  {
@@ -907,35 +491,7 @@
907
  },
908
  {
909
  "cell_type": "code",
910
- "execution_count": 22,
911
- "id": "702c1265",
912
- "metadata": {},
913
- "outputs": [
914
- {
915
- "ename": "TypeError",
916
- "evalue": "Input should have at least 1 dimension i.e. satisfy `len(x.shape) > 0`, got scalar `array(ValuesView(<xarray.Dataset> Size: 298MB\nDimensions: (sample: 99766, x: 27, y: 27)\nCoordinates:\n * sample (sample) int32 399kB 0 1 2 3 4 5 ... 99761 99762 99763 99764 99765\n * x (x) int32 108B 0 1 2 3 4 5 6 7 8 9 ... 18 19 20 21 22 23 24 25 26\n * y (y) int32 108B 0 1 2 3 4 5 6 7 8 9 ... 18 19 20 21 22 23 24 25 26\nData variables:\n images (sample, x, y) float32 291MB ...\n labels (sample) float64 798kB 1.064e+03 1.194e+03 ... 2.453e+03 1.68e+03\n vx (sample) float64 798kB -2.619 31.06 -2.924 ... -167.4 -43.76 -4.671\n vy (sample) float64 798kB 3.084 -41.06 8.954 ... -27.1 47.03 -1.08\n v (sample) float64 798kB 4.046 51.48 9.419 ... 169.6 64.24 4.794\n smb (sample) float64 798kB 62.64 451.3 490.5 ... 1.294e+03 738.1 31.25\n z (sample) float64 798kB 1.162e+03 1.204e+03 ... 1.22e+03 2.154e+03\n s (sample) float64 798kB 0.007977 0.01595 ... 0.00455 0.008152\n temp (sample) float64 798kB 244.0 252.7 246.3 ... 258.2 249.8 234.5\nAttributes:\n description: CNN data with elevation images. Scalar features are everyth...),\n dtype=object)` instead.",
917
- "output_type": "error",
918
- "traceback": [
919
- "\u001b[31m---------------------------------------------------------------------------\u001b[39m",
920
- "\u001b[31mTypeError\u001b[39m Traceback (most recent call last)",
921
- "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[22]\u001b[39m\u001b[32m, line 1\u001b[39m\n\u001b[32m----> \u001b[39m\u001b[32m1\u001b[39m train_data, test_data, ydatatrain, ydatatest = \u001b[43mtrain_test_split\u001b[49m\u001b[43m(\u001b[49m\u001b[43mdata\u001b[49m\u001b[43m.\u001b[49m\u001b[43mvalues\u001b[49m\u001b[43m(\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mdata\u001b[49m\u001b[43m.\u001b[49m\u001b[43mlabels\u001b[49m\u001b[43m.\u001b[49m\u001b[43mvalues\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43mtest_size\u001b[49m\u001b[43m=\u001b[49m\u001b[32;43m0.2\u001b[39;49m\u001b[43m)\u001b[49m\n",
922
- "\u001b[36mFile \u001b[39m\u001b[32mc:\\Users\\Cap\\Documents\\Python_Scripts\\AppML\\.appMLvenv\\Lib\\site-packages\\sklearn\\utils\\_param_validation.py:216\u001b[39m, in \u001b[36mvalidate_params.<locals>.decorator.<locals>.wrapper\u001b[39m\u001b[34m(*args, **kwargs)\u001b[39m\n\u001b[32m 210\u001b[39m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[32m 211\u001b[39m \u001b[38;5;28;01mwith\u001b[39;00m config_context(\n\u001b[32m 212\u001b[39m skip_parameter_validation=(\n\u001b[32m 213\u001b[39m prefer_skip_nested_validation \u001b[38;5;129;01mor\u001b[39;00m global_skip_validation\n\u001b[32m 214\u001b[39m )\n\u001b[32m 215\u001b[39m ):\n\u001b[32m--> \u001b[39m\u001b[32m216\u001b[39m \u001b[38;5;28;01mreturn\u001b[39;00m \u001b[43mfunc\u001b[49m\u001b[43m(\u001b[49m\u001b[43m*\u001b[49m\u001b[43margs\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[43m*\u001b[49m\u001b[43m*\u001b[49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n\u001b[32m 217\u001b[39m \u001b[38;5;28;01mexcept\u001b[39;00m InvalidParameterError \u001b[38;5;28;01mas\u001b[39;00m e:\n\u001b[32m 218\u001b[39m \u001b[38;5;66;03m# When the function is just a wrapper around an estimator, we allow\u001b[39;00m\n\u001b[32m 219\u001b[39m \u001b[38;5;66;03m# the function to delegate validation to the estimator, but we replace\u001b[39;00m\n\u001b[32m 220\u001b[39m \u001b[38;5;66;03m# the name of the estimator by the name of the function in the error\u001b[39;00m\n\u001b[32m 221\u001b[39m \u001b[38;5;66;03m# message to avoid confusion.\u001b[39;00m\n\u001b[32m 222\u001b[39m msg = re.sub(\n\u001b[32m 223\u001b[39m \u001b[33mr\u001b[39m\u001b[33m\"\u001b[39m\u001b[33mparameter of \u001b[39m\u001b[33m\\\u001b[39m\u001b[33mw+ must be\u001b[39m\u001b[33m\"\u001b[39m,\n\u001b[32m 224\u001b[39m \u001b[33mf\u001b[39m\u001b[33m\"\u001b[39m\u001b[33mparameter of \u001b[39m\u001b[38;5;132;01m{\u001b[39;00mfunc.\u001b[34m__qualname__\u001b[39m\u001b[38;5;132;01m}\u001b[39;00m\u001b[33m must be\u001b[39m\u001b[33m\"\u001b[39m,\n\u001b[32m 225\u001b[39m \u001b[38;5;28mstr\u001b[39m(e),\n\u001b[32m 226\u001b[39m )\n",
923
- "\u001b[36mFile \u001b[39m\u001b[32mc:\\Users\\Cap\\Documents\\Python_Scripts\\AppML\\.appMLvenv\\Lib\\site-packages\\sklearn\\model_selection\\_split.py:2848\u001b[39m, in \u001b[36mtrain_test_split\u001b[39m\u001b[34m(test_size, train_size, random_state, shuffle, stratify, *arrays)\u001b[39m\n\u001b[32m 2845\u001b[39m \u001b[38;5;28;01mif\u001b[39;00m n_arrays == \u001b[32m0\u001b[39m:\n\u001b[32m 2846\u001b[39m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mValueError\u001b[39;00m(\u001b[33m\"\u001b[39m\u001b[33mAt least one array required as input\u001b[39m\u001b[33m\"\u001b[39m)\n\u001b[32m-> \u001b[39m\u001b[32m2848\u001b[39m arrays = \u001b[43mindexable\u001b[49m\u001b[43m(\u001b[49m\u001b[43m*\u001b[49m\u001b[43marrays\u001b[49m\u001b[43m)\u001b[49m\n\u001b[32m 2850\u001b[39m n_samples = _num_samples(arrays[\u001b[32m0\u001b[39m])\n\u001b[32m 2851\u001b[39m n_train, n_test = _validate_shuffle_split(\n\u001b[32m 2852\u001b[39m n_samples, test_size, train_size, default_test_size=\u001b[32m0.25\u001b[39m\n\u001b[32m 2853\u001b[39m )\n",
924
- "\u001b[36mFile \u001b[39m\u001b[32mc:\\Users\\Cap\\Documents\\Python_Scripts\\AppML\\.appMLvenv\\Lib\\site-packages\\sklearn\\utils\\validation.py:532\u001b[39m, in \u001b[36mindexable\u001b[39m\u001b[34m(*iterables)\u001b[39m\n\u001b[32m 502\u001b[39m \u001b[38;5;250m\u001b[39m\u001b[33;03m\"\"\"Make arrays indexable for cross-validation.\u001b[39;00m\n\u001b[32m 503\u001b[39m \n\u001b[32m 504\u001b[39m \u001b[33;03mChecks consistent length, passes through None, and ensures that everything\u001b[39;00m\n\u001b[32m (...)\u001b[39m\u001b[32m 528\u001b[39m \u001b[33;03m[[1, 2, 3], array([2, 3, 4]), None, <...Sparse...dtype 'int64'...shape (3, 1)>]\u001b[39;00m\n\u001b[32m 529\u001b[39m \u001b[33;03m\"\"\"\u001b[39;00m\n\u001b[32m 531\u001b[39m result = [_make_indexable(X) \u001b[38;5;28;01mfor\u001b[39;00m X \u001b[38;5;129;01min\u001b[39;00m iterables]\n\u001b[32m--> \u001b[39m\u001b[32m532\u001b[39m \u001b[43mcheck_consistent_length\u001b[49m\u001b[43m(\u001b[49m\u001b[43m*\u001b[49m\u001b[43mresult\u001b[49m\u001b[43m)\u001b[49m\n\u001b[32m 533\u001b[39m \u001b[38;5;28;01mreturn\u001b[39;00m result\n",
925
- "\u001b[36mFile \u001b[39m\u001b[32mc:\\Users\\Cap\\Documents\\Python_Scripts\\AppML\\.appMLvenv\\Lib\\site-packages\\sklearn\\utils\\validation.py:472\u001b[39m, in \u001b[36mcheck_consistent_length\u001b[39m\u001b[34m(*arrays)\u001b[39m\n\u001b[32m 454\u001b[39m \u001b[38;5;28;01mdef\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[34mcheck_consistent_length\u001b[39m(*arrays):\n\u001b[32m 455\u001b[39m \u001b[38;5;250m \u001b[39m\u001b[33;03m\"\"\"Check that all arrays have consistent first dimensions.\u001b[39;00m\n\u001b[32m 456\u001b[39m \n\u001b[32m 457\u001b[39m \u001b[33;03m Checks whether all objects in arrays have the same shape or length.\u001b[39;00m\n\u001b[32m (...)\u001b[39m\u001b[32m 469\u001b[39m \u001b[33;03m >>> check_consistent_length(a, b)\u001b[39;00m\n\u001b[32m 470\u001b[39m \u001b[33;03m \"\"\"\u001b[39;00m\n\u001b[32m--> \u001b[39m\u001b[32m472\u001b[39m lengths = \u001b[43m[\u001b[49m\u001b[43m_num_samples\u001b[49m\u001b[43m(\u001b[49m\u001b[43mX\u001b[49m\u001b[43m)\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43;01mfor\u001b[39;49;00m\u001b[43m \u001b[49m\u001b[43mX\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;129;43;01min\u001b[39;49;00m\u001b[43m \u001b[49m\u001b[43marrays\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;28;43;01mif\u001b[39;49;00m\u001b[43m \u001b[49m\u001b[43mX\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;129;43;01mis\u001b[39;49;00m\u001b[43m \u001b[49m\u001b[38;5;129;43;01mnot\u001b[39;49;00m\u001b[43m \u001b[49m\u001b[38;5;28;43;01mNone\u001b[39;49;00m\u001b[43m]\u001b[49m\n\u001b[32m 473\u001b[39m uniques = np.unique(lengths)\n\u001b[32m 474\u001b[39m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mlen\u001b[39m(uniques) > \u001b[32m1\u001b[39m:\n",
926
- "\u001b[36mFile \u001b[39m\u001b[32mc:\\Users\\Cap\\Documents\\Python_Scripts\\AppML\\.appMLvenv\\Lib\\site-packages\\sklearn\\utils\\validation.py:472\u001b[39m, in \u001b[36m<listcomp>\u001b[39m\u001b[34m(.0)\u001b[39m\n\u001b[32m 454\u001b[39m \u001b[38;5;28;01mdef\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[34mcheck_consistent_length\u001b[39m(*arrays):\n\u001b[32m 455\u001b[39m \u001b[38;5;250m \u001b[39m\u001b[33;03m\"\"\"Check that all arrays have consistent first dimensions.\u001b[39;00m\n\u001b[32m 456\u001b[39m \n\u001b[32m 457\u001b[39m \u001b[33;03m Checks whether all objects in arrays have the same shape or length.\u001b[39;00m\n\u001b[32m (...)\u001b[39m\u001b[32m 469\u001b[39m \u001b[33;03m >>> check_consistent_length(a, b)\u001b[39;00m\n\u001b[32m 470\u001b[39m \u001b[33;03m \"\"\"\u001b[39;00m\n\u001b[32m--> \u001b[39m\u001b[32m472\u001b[39m lengths = [\u001b[43m_num_samples\u001b[49m\u001b[43m(\u001b[49m\u001b[43mX\u001b[49m\u001b[43m)\u001b[49m \u001b[38;5;28;01mfor\u001b[39;00m X \u001b[38;5;129;01min\u001b[39;00m arrays \u001b[38;5;28;01mif\u001b[39;00m X \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m]\n\u001b[32m 473\u001b[39m uniques = np.unique(lengths)\n\u001b[32m 474\u001b[39m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mlen\u001b[39m(uniques) > \u001b[32m1\u001b[39m:\n",
927
- "\u001b[36mFile \u001b[39m\u001b[32mc:\\Users\\Cap\\Documents\\Python_Scripts\\AppML\\.appMLvenv\\Lib\\site-packages\\sklearn\\utils\\validation.py:399\u001b[39m, in \u001b[36m_num_samples\u001b[39m\u001b[34m(x)\u001b[39m\n\u001b[32m 397\u001b[39m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mhasattr\u001b[39m(x, \u001b[33m\"\u001b[39m\u001b[33mshape\u001b[39m\u001b[33m\"\u001b[39m) \u001b[38;5;129;01mand\u001b[39;00m x.shape \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[32m 398\u001b[39m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mlen\u001b[39m(x.shape) == \u001b[32m0\u001b[39m:\n\u001b[32m--> \u001b[39m\u001b[32m399\u001b[39m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mTypeError\u001b[39;00m(\n\u001b[32m 400\u001b[39m \u001b[33m\"\u001b[39m\u001b[33mInput should have at least 1 dimension i.e. satisfy \u001b[39m\u001b[33m\"\u001b[39m\n\u001b[32m 401\u001b[39m \u001b[33mf\u001b[39m\u001b[33m\"\u001b[39m\u001b[33m`len(x.shape) > 0`, got scalar `\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mx\u001b[38;5;132;01m!r}\u001b[39;00m\u001b[33m` instead.\u001b[39m\u001b[33m\"\u001b[39m\n\u001b[32m 402\u001b[39m )\n\u001b[32m 403\u001b[39m \u001b[38;5;66;03m# Check that shape is returning an integer or default to len\u001b[39;00m\n\u001b[32m 404\u001b[39m \u001b[38;5;66;03m# Dask dataframes may not return numeric shape[0] value\u001b[39;00m\n\u001b[32m 405\u001b[39m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28misinstance\u001b[39m(x.shape[\u001b[32m0\u001b[39m], numbers.Integral):\n",
928
- "\u001b[31mTypeError\u001b[39m: Input should have at least 1 dimension i.e. satisfy `len(x.shape) > 0`, got scalar `array(ValuesView(<xarray.Dataset> Size: 298MB\nDimensions: (sample: 99766, x: 27, y: 27)\nCoordinates:\n * sample (sample) int32 399kB 0 1 2 3 4 5 ... 99761 99762 99763 99764 99765\n * x (x) int32 108B 0 1 2 3 4 5 6 7 8 9 ... 18 19 20 21 22 23 24 25 26\n * y (y) int32 108B 0 1 2 3 4 5 6 7 8 9 ... 18 19 20 21 22 23 24 25 26\nData variables:\n images (sample, x, y) float32 291MB ...\n labels (sample) float64 798kB 1.064e+03 1.194e+03 ... 2.453e+03 1.68e+03\n vx (sample) float64 798kB -2.619 31.06 -2.924 ... -167.4 -43.76 -4.671\n vy (sample) float64 798kB 3.084 -41.06 8.954 ... -27.1 47.03 -1.08\n v (sample) float64 798kB 4.046 51.48 9.419 ... 169.6 64.24 4.794\n smb (sample) float64 798kB 62.64 451.3 490.5 ... 1.294e+03 738.1 31.25\n z (sample) float64 798kB 1.162e+03 1.204e+03 ... 1.22e+03 2.154e+03\n s (sample) float64 798kB 0.007977 0.01595 ... 0.00455 0.008152\n temp (sample) float64 798kB 244.0 252.7 246.3 ... 258.2 249.8 234.5\nAttributes:\n description: CNN data with elevation images. Scalar features are everyth...),\n dtype=object)` instead."
929
- ]
930
- }
931
- ],
932
- "source": [
933
- "train_data, test_data, ydatatrain, ydatatest = train_test_split(data.values(), data.labels.values, test_size=0.2)"
934
- ]
935
- },
936
- {
937
- "cell_type": "code",
938
- "execution_count": 36,
939
  "id": "f57481cb",
940
  "metadata": {},
941
  "outputs": [],
@@ -970,7 +526,7 @@
970
  },
971
  {
972
  "cell_type": "code",
973
- "execution_count": 41,
974
  "id": "73c5f289",
975
  "metadata": {},
976
  "outputs": [
 
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
+ "execution_count": 1,
6
  "id": "e7e09770",
7
  "metadata": {},
8
  "outputs": [],
 
17
  },
18
  {
19
  "cell_type": "code",
20
+ "execution_count": 2,
21
  "id": "797deb25",
22
  "metadata": {},
23
  "outputs": [],
 
27
  },
28
  {
29
  "cell_type": "code",
30
+ "execution_count": 14,
31
  "id": "399483a9",
32
  "metadata": {},
33
  "outputs": [
34
  {
35
  "data": {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  "text/plain": [
37
+ "(99766, 27, 27)"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  ]
39
  },
40
+ "execution_count": 14,
41
  "metadata": {},
42
  "output_type": "execute_result"
43
  }
44
  ],
45
  "source": [
46
+ "data.images.values.shape"
47
  ]
48
  },
49
  {
 
491
  },
492
  {
493
  "cell_type": "code",
494
+ "execution_count": 10,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
495
  "id": "f57481cb",
496
  "metadata": {},
497
  "outputs": [],
 
526
  },
527
  {
528
  "cell_type": "code",
529
+ "execution_count": 11,
530
  "id": "73c5f289",
531
  "metadata": {},
532
  "outputs": [