{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd \n", "from datetime import datetime \n", "from datetime import date\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", "import pandas as pd\n", "from keras.models import Sequential\n", "from keras.layers import LSTM, Dense\n", "from sklearn.model_selection import train_test_split\n", "from sklearn.preprocessing import MinMaxScaler,StandardScaler\n", "from keras.callbacks import ModelCheckpoint\n", "import tensorflow as tf" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[]" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import tensorflow as tf\n", "tf.config.list_physical_devices('GPU')" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | date | \n", "zone_047_hw_valve | \n", "rtu_004_sat_sp_tn | \n", "zone_047_temp | \n", "zone_047_fan_spd | \n", "rtu_004_fltrd_sa_flow_tn | \n", "rtu_004_sa_temp | \n", "rtu_004_pa_static_stpt_tn | \n", "rtu_004_oa_flow_tn | \n", "rtu_004_oadmpr_pct | \n", "... | \n", "zone_047_heating_sp | \n", "Unnamed: 47_y | \n", "hvac_S | \n", "hp_hws_temp | \n", "aru_001_cwr_temp | \n", "aru_001_cws_fr_gpm | \n", "aru_001_cws_temp | \n", "aru_001_hwr_temp | \n", "aru_001_hws_fr_gpm | \n", "aru_001_hws_temp | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "2018-01-01 00:00:00 | \n", "100.0 | \n", "69.0 | \n", "67.5 | \n", "20.0 | \n", "9265.604 | \n", "66.1 | \n", "0.06 | \n", "0.000000 | \n", "28.0 | \n", "... | \n", "NaN | \n", "NaN | \n", "NaN | \n", "75.3 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
1 | \n", "2018-01-01 00:01:00 | \n", "100.0 | \n", "69.0 | \n", "67.5 | \n", "20.0 | \n", "9265.604 | \n", "66.0 | \n", "0.06 | \n", "6572.099162 | \n", "28.0 | \n", "... | \n", "NaN | \n", "NaN | \n", "NaN | \n", "75.3 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
2 | \n", "2018-01-01 00:02:00 | \n", "100.0 | \n", "69.0 | \n", "67.5 | \n", "20.0 | \n", "9708.240 | \n", "66.1 | \n", "0.06 | \n", "7628.832542 | \n", "28.0 | \n", "... | \n", "NaN | \n", "NaN | \n", "NaN | \n", "75.3 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
3 | \n", "2018-01-01 00:03:00 | \n", "100.0 | \n", "69.0 | \n", "67.5 | \n", "20.0 | \n", "9611.638 | \n", "66.1 | \n", "0.06 | \n", "7710.294617 | \n", "28.0 | \n", "... | \n", "NaN | \n", "NaN | \n", "NaN | \n", "75.3 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
4 | \n", "2018-01-01 00:04:00 | \n", "100.0 | \n", "69.0 | \n", "67.5 | \n", "20.0 | \n", "9215.110 | \n", "66.0 | \n", "0.06 | \n", "7139.184090 | \n", "28.0 | \n", "... | \n", "NaN | \n", "NaN | \n", "NaN | \n", "75.3 | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "NaN | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
2072149 | \n", "2020-12-31 23:58:00 | \n", "100.0 | \n", "68.0 | \n", "63.2 | \n", "20.0 | \n", "18884.834 | \n", "64.4 | \n", "0.06 | \n", "2938.320000 | \n", "23.4 | \n", "... | \n", "71.0 | \n", "69.0 | \n", "23.145000 | \n", "123.8 | \n", "56.25 | \n", "54.71 | \n", "56.4 | \n", "123.42 | \n", "61.6 | \n", "122.36 | \n", "
2072150 | \n", "2020-12-31 23:58:00 | \n", "100.0 | \n", "68.0 | \n", "63.2 | \n", "20.0 | \n", "18884.834 | \n", "64.4 | \n", "0.06 | \n", "2938.320000 | \n", "23.4 | \n", "... | \n", "71.0 | \n", "69.0 | \n", "23.145000 | \n", "123.8 | \n", "56.25 | \n", "54.71 | \n", "56.4 | \n", "123.42 | \n", "61.6 | \n", "122.36 | \n", "
2072151 | \n", "2020-12-31 23:59:00 | \n", "100.0 | \n", "68.0 | \n", "63.2 | \n", "20.0 | \n", "19345.508 | \n", "64.3 | \n", "0.06 | \n", "3154.390000 | \n", "23.4 | \n", "... | \n", "71.0 | \n", "69.0 | \n", "23.145000 | \n", "123.8 | \n", "56.25 | \n", "54.71 | \n", "56.4 | \n", "123.42 | \n", "61.6 | \n", "122.36 | \n", "
2072152 | \n", "2020-12-31 23:59:00 | \n", "100.0 | \n", "68.0 | \n", "63.2 | \n", "20.0 | \n", "19345.508 | \n", "64.3 | \n", "0.06 | \n", "3154.390000 | \n", "23.4 | \n", "... | \n", "71.0 | \n", "69.0 | \n", "23.145000 | \n", "123.8 | \n", "56.25 | \n", "54.71 | \n", "56.4 | \n", "123.42 | \n", "61.6 | \n", "122.36 | \n", "
2072153 | \n", "2021-01-01 00:00:00 | \n", "100.0 | \n", "68.0 | \n", "63.2 | \n", "20.0 | \n", "18650.232 | \n", "64.1 | \n", "0.06 | \n", "3076.270000 | \n", "22.9 | \n", "... | \n", "71.0 | \n", "69.0 | \n", "23.788947 | \n", "123.8 | \n", "56.25 | \n", "54.71 | \n", "56.4 | \n", "123.42 | \n", "61.6 | \n", "122.36 | \n", "
2072154 rows × 30 columns
\n", "\n", " | date | \n", "hp_hws_temp | \n", "rtu_003_sat_sp_tn | \n", "rtu_003_fltrd_sa_flow_tn | \n", "rtu_003_sa_temp | \n", "rtu_003_pa_static_stpt_tn | \n", "rtu_003_oa_flow_tn | \n", "rtu_003_oadmpr_pct | \n", "rtu_003_econ_stpt_tn | \n", "rtu_003_ra_temp | \n", "... | \n", "rtu_003_rf_vfd_spd_fbk_tn | \n", "rtu_003_fltrd_gnd_lvl_plenum_press_tn | \n", "rtu_003_fltrd_lvl2_plenum_press_tn | \n", "wifi_third_south | \n", "wifi_fourth_south | \n", "air_temp_set_1 | \n", "air_temp_set_2 | \n", "dew_point_temperature_set_1d | \n", "relative_humidity_set_1 | \n", "solar_radiation_set_1 | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "2018-01-01 00:00:00 | \n", "75.3 | \n", "65.0 | \n", "13558.539 | \n", "65.5 | \n", "0.6 | \n", "0.000000 | \n", "34.6 | \n", "65.0 | \n", "67.9 | \n", "... | \n", "49.9 | \n", "0.04 | \n", "0.05 | \n", "NaN | \n", "NaN | \n", "11.64 | \n", "11.51 | \n", "8.1 | \n", "79.07 | \n", "86.7 | \n", "
1 | \n", "2018-01-01 00:01:00 | \n", "75.3 | \n", "65.0 | \n", "13592.909 | \n", "65.6 | \n", "0.6 | \n", "5992.059572 | \n", "34.6 | \n", "65.0 | \n", "67.9 | \n", "... | \n", "49.4 | \n", "0.04 | \n", "0.04 | \n", "NaN | \n", "NaN | \n", "11.64 | \n", "11.51 | \n", "8.1 | \n", "79.07 | \n", "86.7 | \n", "
2 rows × 23 columns
\n", "