saving model at the end

This commit is contained in:
frankknoll
2023-03-15 00:42:03 +01:00
parent eed59e2315
commit 34291bc082
3 changed files with 20 additions and 12 deletions

View File

@@ -3,7 +3,7 @@ channels:
- defaults
# - conda-forge
dependencies:
- python=3
- python=3.9
- ipykernel
- numpy
- pandas
@@ -12,7 +12,7 @@ dependencies:
- bs4
- lxml
- jupyter
- tensorflow
- tensorflow=2.11
- nb_conda_kernels
- pillow
- openpyxl

View File

@@ -38,7 +38,7 @@
"\n",
"import tensorflow as tf\n",
"from tensorflow import keras\n",
"from tensorflow.keras import layers\n"
"from tensorflow.keras import layers"
]
},
{
@@ -914,6 +914,15 @@
"source": [
"display16Predictions(prediction_model, test_dataset, predictionsDecoder)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"modelDAO.saveModel(model)"
]
}
],
"metadata": {
@@ -926,9 +935,9 @@
},
"gpuClass": "standard",
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "howbadismybatch-venv-kernel",
"language": "python",
"name": "python3"
"name": "howbadismybatch-venv-kernel"
},
"language_info": {
"codemirror_mode": {
@@ -940,12 +949,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.7"
},
"vscode": {
"interpreter": {
"hash": "916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1"
}
"version": "3.10.8"
}
},
"nbformat": 4,

View File

@@ -7,13 +7,17 @@ FK-TODO:
anacron job:
sudo cp src/intensivstationen_howbadismybatch.sh /etc/cron.daily/intensivstationen_howbadismybatch
conda create --name howbadismybatch-venv python=3
conda create --name howbadismybatch-venv python=3.9
conda activate howbadismybatch-venv
ipython kernel install --user --name=howbadismybatch-venv-kernel
jupyter kernelspec list
conda env export --from-history > environment.yml
conda env create -f environment.yml
update howbadismybatch-venv:
conda activate howbadismybatch-venv
conda env update --file environment.yml --prune
www.HowBadIsMyBatch.info
/etc/apache2/sites-available/HowBadIsMyBatch.conf