Skip to content

Commit c714d25

Browse files
committed
mods for ws24/24
- torch support - backend K removed - complex valued left inverse by SGD
1 parent 9ec85be commit c714d25

8 files changed

+284
-37
lines changed

.binder/requirements.txt

+9-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
matplotlib
1+
pytorch
2+
torchvision
3+
complextorch
4+
tensorflow
5+
keras-tuner
6+
scikit-learn
7+
statsmodels
28
numpy
39
scipy
10+
matplotlib
11+
ipympl
412
librosa
513
soundfile
6-
ipympl
7-
scikit-learn
8-
tensorflow
9-
keras-tuner
10-
statsmodels
1114
pyloudnorm

ci/requirements_env.txt

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
ipympl
1+
pytorch
2+
torchvision
3+
complextorch
4+
tensorflow
25
keras-tuner
3-
librosa
4-
matplotlib
5-
numpy
6-
pyloudnorm
7-
scipy
86
scikit-learn
97
statsmodels
10-
tensorflow
8+
numpy
9+
scipy
10+
matplotlib
11+
ipympl
12+
librosa
13+
soundfile
14+
pyloudnorm

exercise12_HyperParameterTuning.ipynb

+3-4
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
"from sklearn.preprocessing import OneHotEncoder, LabelBinarizer\n",
6565
"import tensorflow as tf\n",
6666
"from tensorflow import keras\n",
67-
"from keras import backend as K\n",
6867
"import time\n",
6968
"\n",
7069
"print(\n",
@@ -190,7 +189,7 @@
190189
},
191190
{
192191
"cell_type": "code",
193-
"execution_count": null,
192+
"execution_count": 4,
194193
"id": "8b7a07f0-7151-4914-93ca-6efb3c22779c",
195194
"metadata": {},
196195
"outputs": [],
@@ -202,7 +201,7 @@
202201
},
203202
{
204203
"cell_type": "code",
205-
"execution_count": null,
204+
"execution_count": 5,
206205
"id": "e1eae32c-83b4-4b69-837f-31e3d87a470a",
207206
"metadata": {},
208207
"outputs": [],
@@ -326,7 +325,7 @@
326325
},
327326
{
328327
"cell_type": "code",
329-
"execution_count": null,
328+
"execution_count": 9,
330329
"id": "e76a4f45-6f5b-4755-9f98-7ad228efdf97",
331330
"metadata": {},
332331
"outputs": [],

exercise12_MusicGenreClassification.ipynb

+8-9
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
"from sklearn.preprocessing import OneHotEncoder, LabelBinarizer\n",
8686
"import tensorflow as tf\n",
8787
"from tensorflow import keras\n",
88-
"from keras import backend as K\n",
8988
"import time\n",
9089
"\n",
9190
"\n",
@@ -157,7 +156,7 @@
157156
},
158157
{
159158
"cell_type": "code",
160-
"execution_count": null,
159+
"execution_count": 29,
161160
"id": "ed5b4e1e-c6fe-4363-80bc-919558d6e06b",
162161
"metadata": {},
163162
"outputs": [],
@@ -269,7 +268,7 @@
269268
},
270269
{
271270
"cell_type": "code",
272-
"execution_count": null,
271+
"execution_count": 30,
273272
"id": "23424375-717e-4ca1-bcf7-9bd4a4fe8af8",
274273
"metadata": {},
275274
"outputs": [],
@@ -281,7 +280,7 @@
281280
},
282281
{
283282
"cell_type": "code",
284-
"execution_count": null,
283+
"execution_count": 31,
285284
"id": "4a58498f-2445-4837-a9c0-95b940fd9086",
286285
"metadata": {},
287286
"outputs": [],
@@ -307,7 +306,7 @@
307306
},
308307
{
309308
"cell_type": "code",
310-
"execution_count": null,
309+
"execution_count": 32,
311310
"id": "39305f54-e211-4564-853d-28dfc52119c1",
312311
"metadata": {},
313312
"outputs": [],
@@ -465,7 +464,7 @@
465464
},
466465
{
467466
"cell_type": "code",
468-
"execution_count": null,
467+
"execution_count": 41,
469468
"id": "49cb1e2f-da96-4b43-8490-f5b96d0c60cb",
470469
"metadata": {},
471470
"outputs": [],
@@ -527,7 +526,7 @@
527526
},
528527
{
529528
"cell_type": "code",
530-
"execution_count": null,
529+
"execution_count": 43,
531530
"id": "dbf6b6d1-dfb7-47ed-a723-967f2d1f52dc",
532531
"metadata": {},
533532
"outputs": [],
@@ -539,7 +538,7 @@
539538
},
540539
{
541540
"cell_type": "code",
542-
"execution_count": null,
541+
"execution_count": 44,
543542
"id": "dabce6d1-009d-470f-8407-788b7478ab70",
544543
"metadata": {},
545544
"outputs": [],
@@ -660,7 +659,7 @@
660659
},
661660
{
662661
"cell_type": "code",
663-
"execution_count": null,
662+
"execution_count": 48,
664663
"id": "4f27ff18-5dd4-42fa-86a1-60926c9b5993",
665664
"metadata": {},
666665
"outputs": [],

exercise13_CNN.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import numpy as np
1212
import tensorflow as tf
13-
import tensorflow.keras as keras
13+
from tensorflow import keras
1414

1515

1616
print("element-wise multiplication of matrix slices")

0 commit comments

Comments
 (0)