diff --git a/Model/Neural_Network/SWEML_Hindcast.ipynb b/Model/Neural_Network/SWEML_Hindcast.ipynb index 1f939e9..389ec67 100644 --- a/Model/Neural_Network/SWEML_Hindcast.ipynb +++ b/Model/Neural_Network/SWEML_Hindcast.ipynb @@ -30,21 +30,12 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": null, "id": "13048ad4", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "2024-04-23 15:14:17.606517: 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", - "2024-04-23 15:14:17.606541: 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" - ] - } - ], + "outputs": [], "source": [ "import os\n", "import sys\n", @@ -97,18 +88,10 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "id": "d82649fa-4b3e-4a34-b4ac-a5504298b827", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Creating files for a historical simulation within 'N_Sierras', 'S_Sierras_High', 'S_Sierras_Low', 'Greater_Yellowstone', 'N_Co_Rockies', 'SW_Mont', 'SW_Co_Rockies', 'GBasin', 'N_Wasatch', 'N_Cascade', 'S_Wasatch', 'SW_Mtns', 'E_WA_N_Id_W_Mont', 'S_Wyoming', 'SE_Co_Rockies', 'Sawtooth', 'Ca_Coast', 'E_Or', 'N_Yellowstone', 'S_Cascade', 'Wa_Coast', 'Greater_Glacier', 'Or_Coast' regions for water year 2022\n" - ] - } - ], + "outputs": [], "source": [ "#To create .netrc file\n", "#import earthaccess\n", @@ -143,132 +126,12 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": null, "id": "c0062b00", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - " 0%| | 0/268 [00:00.predict_function at 0x7f7105411820> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has reduce_retracing=True option that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for more details.\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "5 out of the last 57 calls to .predict_function at 0x7f7105411820> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has reduce_retracing=True option that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for more details.\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "WARNING:tensorflow:6 out of the last 58 calls to .predict_function at 0x7f716364cd30> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has reduce_retracing=True option that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for more details.\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "6 out of the last 58 calls to .predict_function at 0x7f716364cd30> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has reduce_retracing=True option that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for more details.\n", - " 0%| | 1/268 [01:26<6:26:13, 86.79s/it]" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "No snow in region: Or_Coast\n", - "Getting California Data Exchange Center SWE data from sites\n", - "Getting NRCS SNOTEL SWE data from sites\n" - ] - } - ], + "outputs": [], "source": [ "#run the model through all time (data acqusition already completed)\n", "model = 'Neural_Network'\n", @@ -312,35 +175,12 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": null, "id": "0b64a8b9-47ac-45ef-885f-98339b0983ad", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - " 0% | |\r" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "['submission_format.h5', '2019_predictions.h5', '2022_predictions.h5', 'RegionWYTest.h5']\n", - "Pushing files to AWS\n" - ] - }, - { - "name": "stderr", - "output_type": "stream", - "text": [ - "100% |########################################################################|\n" - ] - } - ], + "outputs": [], "source": [ "modelname= 'Neural_Network'\n", "folderpath = 'Predictions/Hold_Out_Year/Daily/fSCA_True/'\n",