updating data

This commit is contained in:
frankknoll
2022-08-06 11:13:19 +02:00
parent 8bfc647cb4
commit bd7e6f1cd4
388 changed files with 603 additions and 406 deletions

View File

@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "9de5907f-18f5-4cb1-903e-26028ff1fa03",
"metadata": {},
"outputs": [],
@@ -16,10 +16,18 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"id": "d1e4fa9e",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"06.08.2022, 11:11:37 Uhr\n"
]
}
],
"source": [
"from datetime import datetime\n",
"\n",
@@ -28,7 +36,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"id": "1dbf9321",
"metadata": {},
"outputs": [],
@@ -78,10 +86,20 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"id": "ffad1c04",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" lastUpdated: 2022-07-29 00:00:00\n",
"lastUpdatedDataSource: 2022-08-05 00:00:00\n",
"needsUpdate: True\n"
]
}
],
"source": [
"dateProvider = DateProvider()\n",
"print(' lastUpdated:', dateProvider.getLastUpdated())\n",
@@ -92,7 +110,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"id": "e673b947",
"metadata": {},
"outputs": [],
@@ -104,7 +122,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"id": "e313a06c",
"metadata": {},
"outputs": [],
@@ -114,10 +132,21 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"id": "501f6c7b",
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"'/home/frankknoll/Dokumente/Corona/projects/HowBadIsMyBatch-pages/src'"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"pwd"
]
@@ -132,7 +161,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 8,
"id": "8f0bfb9c",
"metadata": {},
"outputs": [],
@@ -171,7 +200,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"id": "777ff543",
"metadata": {},
"outputs": [],
@@ -207,7 +236,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 10,
"id": "da7c965a",
"metadata": {},
"outputs": [],
@@ -222,10 +251,64 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 11,
"id": "d9b72506",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"2022-08-06 11:11:45.768006: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory\n",
"2022-08-06 11:11:45.768034: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.\n",
"2022-08-06 11:11:49.001215: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory\n",
"2022-08-06 11:11:49.001238: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)\n",
"2022-08-06 11:11:49.001254: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (frankknoll-XPS-13-9370): /proc/driver/nvidia/version does not exist\n",
"2022-08-06 11:11:49.001642: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA\n",
"To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"loading model...\n",
"Model: \"model\"\n",
"_________________________________________________________________\n",
" Layer (type) Output Shape Param # \n",
"=================================================================\n",
" image (InputLayer) [(None, 241, 62, 1)] 0 \n",
" \n",
" Conv1 (Conv2D) (None, 241, 62, 32) 320 \n",
" \n",
" pool1 (MaxPooling2D) (None, 120, 31, 32) 0 \n",
" \n",
" Conv2 (Conv2D) (None, 120, 31, 64) 18496 \n",
" \n",
" pool2 (MaxPooling2D) (None, 60, 15, 64) 0 \n",
" \n",
" reshape (Reshape) (None, 60, 960) 0 \n",
" \n",
" dense1 (Dense) (None, 60, 64) 61504 \n",
" \n",
" dropout (Dropout) (None, 60, 64) 0 \n",
" \n",
" bidirectional (Bidirectiona (None, 60, 256) 197632 \n",
" l) \n",
" \n",
" bidirectional_1 (Bidirectio (None, 60, 128) 164352 \n",
" nal) \n",
" \n",
" dense2 (Dense) (None, 60, 24) 3096 \n",
" \n",
"=================================================================\n",
"Total params: 445,400\n",
"Trainable params: 445,400\n",
"Non-trainable params: 0\n",
"_________________________________________________________________\n"
]
}
],
"source": [
"import numpy as np\n",
"import tensorflow as tf\n",
@@ -304,7 +387,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 12,
"id": "918d088d",
"metadata": {},
"outputs": [],
@@ -354,7 +437,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 13,
"id": "9ccc73b3",
"metadata": {},
"outputs": [],
@@ -379,10 +462,124 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 14,
"id": "9a9e4d1e",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"\n",
"====== WebDriver manager ======\n",
"Current google-chrome version is 94.0.4606\n",
"Get LATEST chromedriver version for 94.0.4606 google-chrome\n",
"Trying to download new driver from https://chromedriver.storage.googleapis.com/94.0.4606.113/chromedriver_linux64.zip\n",
"Driver has been saved in cache [/home/frankknoll/.wdm/drivers/chromedriver/linux64/94.0.4606.113]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"1/1 [==============================] - 2s 2s/step\n"
]
},
{
"data": {
"text/plain": [
"'textInCaptchaImage: '"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
"'732742'"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"1/1 [==============================] - 0s 29ms/step\n"
]
},
{
"data": {
"text/plain": [
"'textInCaptchaImage: '"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
"'19b064'"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"1/1 [==============================] - 0s 26ms/step\n"
]
},
{
"data": {
"text/plain": [
"'textInCaptchaImage: '"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
"'BB743B'"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"1/1 [==============================] - 0s 31ms/step\n"
]
},
{
"data": {
"text/plain": [
"'textInCaptchaImage: '"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
"'290037'"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"if needsUpdate:\n",
" downloadVAERSFileAndUnzip('2022VAERSData.zip')\n",