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 - defaults
# - conda-forge # - conda-forge
dependencies: dependencies:
- python=3 - python=3.9
- ipykernel - ipykernel
- numpy - numpy
- pandas - pandas
@@ -12,7 +12,7 @@ dependencies:
- bs4 - bs4
- lxml - lxml
- jupyter - jupyter
- tensorflow - tensorflow=2.11
- nb_conda_kernels - nb_conda_kernels
- pillow - pillow
- openpyxl - openpyxl

View File

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

View File

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