Deep Learning

- fixed examples
- added exercises
This commit is contained in:
2024-09-12 12:20:25 +02:00
parent 7ff3032d3c
commit 1d9faaf2bd
6 changed files with 1085 additions and 28 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
__pycache__ __pycache__
.datasets
.venv .venv

View File

@@ -1,4 +1,5 @@
keras keras
keras-nlp
jax[cuda12] jax[cuda12]
pydot pydot

490
src/deep/caption.ipynb Normal file

File diff suppressed because one or more lines are too long

418
src/deep/denoise.ipynb Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -2,17 +2,17 @@
"cells": [ "cells": [
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 2, "execution_count": 1,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
"data": { "data": {
"text/html": [ "text/html": [
"<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\">Model: \"sequential_1\"</span>\n", "<pre style=\"white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace\"><span style=\"font-weight: bold\">Model: \"sequential\"</span>\n",
"</pre>\n" "</pre>\n"
], ],
"text/plain": [ "text/plain": [
"\u001b[1mModel: \"sequential_1\"\u001b[0m\n" "\u001b[1mModel: \"sequential\"\u001b[0m\n"
] ]
}, },
"metadata": {}, "metadata": {},
@@ -92,13 +92,13 @@
"text": [ "text": [
"None\n", "None\n",
"Epoch 1/3\n", "Epoch 1/3\n",
"\u001b[1m391/391\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m33s\u001b[0m 80ms/step - accuracy: 0.6408 - loss: 0.5984 - val_accuracy: 0.8401 - val_loss: 0.3739\n", "\u001b[1m391/391\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m30s\u001b[0m 73ms/step - accuracy: 0.6560 - loss: 0.5974 - val_accuracy: 0.8373 - val_loss: 0.3737\n",
"Epoch 2/3\n", "Epoch 2/3\n",
"\u001b[1m391/391\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m40s\u001b[0m 100ms/step - accuracy: 0.8704 - loss: 0.3201 - val_accuracy: 0.8371 - val_loss: 0.3736\n", "\u001b[1m391/391\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m32s\u001b[0m 79ms/step - accuracy: 0.8635 - loss: 0.3428 - val_accuracy: 0.8604 - val_loss: 0.3624\n",
"Epoch 3/3\n", "Epoch 3/3\n",
"\u001b[1m391/391\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m39s\u001b[0m 100ms/step - accuracy: 0.8787 - loss: 0.2981 - val_accuracy: 0.8701 - val_loss: 0.3126\n", "\u001b[1m391/391\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m28s\u001b[0m 73ms/step - accuracy: 0.8903 - loss: 0.2791 - val_accuracy: 0.8384 - val_loss: 0.3653\n",
"\u001b[1m782/782\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m35s\u001b[0m 44ms/step - accuracy: 0.8677 - loss: 0.3171\n", "\u001b[1m782/782\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m38s\u001b[0m 49ms/step - accuracy: 0.8349 - loss: 0.3732\n",
"Accuracy: 87.01%\n" "Accuracy: 83.84%\n"
] ]
} }
], ],