|
|
@ -30,6 +30,16 @@
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 1,
|
|
|
|
"execution_count": 1,
|
|
|
|
|
|
|
|
"metadata": {},
|
|
|
|
|
|
|
|
"outputs": [],
|
|
|
|
|
|
|
|
"source": [
|
|
|
|
|
|
|
|
"import sys\n",
|
|
|
|
|
|
|
|
"sys.path.append('../../')"
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
|
|
|
"execution_count": 2,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"id": "M687KNlQFp0-"
|
|
|
|
"id": "M687KNlQFp0-"
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -68,7 +78,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 2,
|
|
|
|
"execution_count": 3,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/",
|
|
|
|
"base_uri": "https://localhost:8080/",
|
|
|
@ -136,13 +146,13 @@
|
|
|
|
"2012-01-01 04:00:00 2403.0"
|
|
|
|
"2012-01-01 04:00:00 2403.0"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"execution_count": 2,
|
|
|
|
"execution_count": 3,
|
|
|
|
"metadata": {},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"source": [
|
|
|
|
"energy = load_data('./data')[['load']]\n",
|
|
|
|
"energy = load_data('../../data')[['load']]\n",
|
|
|
|
"energy.head(5)"
|
|
|
|
"energy.head(5)"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -157,7 +167,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 3,
|
|
|
|
"execution_count": 4,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/",
|
|
|
|
"base_uri": "https://localhost:8080/",
|
|
|
@ -198,7 +208,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 4,
|
|
|
|
"execution_count": 5,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"id": "ysvsNyONGt0Q"
|
|
|
|
"id": "ysvsNyONGt0Q"
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -210,7 +220,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 5,
|
|
|
|
"execution_count": 6,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/",
|
|
|
|
"base_uri": "https://localhost:8080/",
|
|
|
@ -260,7 +270,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 6,
|
|
|
|
"execution_count": 7,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
@ -295,7 +305,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 7,
|
|
|
|
"execution_count": 8,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/",
|
|
|
|
"base_uri": "https://localhost:8080/",
|
|
|
@ -363,7 +373,7 @@
|
|
|
|
"2014-11-01 04:00:00 0.059087"
|
|
|
|
"2014-11-01 04:00:00 0.059087"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"execution_count": 7,
|
|
|
|
"execution_count": 8,
|
|
|
|
"metadata": {},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -376,7 +386,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 8,
|
|
|
|
"execution_count": 9,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/",
|
|
|
|
"base_uri": "https://localhost:8080/",
|
|
|
@ -444,7 +454,7 @@
|
|
|
|
"2014-12-30 04:00:00 0.302596"
|
|
|
|
"2014-12-30 04:00:00 0.302596"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"execution_count": 8,
|
|
|
|
"execution_count": 9,
|
|
|
|
"metadata": {},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -474,7 +484,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 9,
|
|
|
|
"execution_count": 10,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"id": "Rpju-Sc2HFm0"
|
|
|
|
"id": "Rpju-Sc2HFm0"
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -488,7 +498,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 10,
|
|
|
|
"execution_count": 11,
|
|
|
|
"metadata": {},
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"source": [
|
|
|
@ -499,7 +509,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 11,
|
|
|
|
"execution_count": 12,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
@ -514,7 +524,7 @@
|
|
|
|
"(1412, 5)"
|
|
|
|
"(1412, 5)"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"execution_count": 11,
|
|
|
|
"execution_count": 12,
|
|
|
|
"metadata": {},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -528,7 +538,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 12,
|
|
|
|
"execution_count": 13,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
@ -543,7 +553,7 @@
|
|
|
|
"(44, 5)"
|
|
|
|
"(44, 5)"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"execution_count": 12,
|
|
|
|
"execution_count": 13,
|
|
|
|
"metadata": {},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -557,7 +567,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 13,
|
|
|
|
"execution_count": 14,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"id": "2u0R2sIsLuq5"
|
|
|
|
"id": "2u0R2sIsLuq5"
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -590,7 +600,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 14,
|
|
|
|
"execution_count": 15,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"id": "EhA403BEPEiD"
|
|
|
|
"id": "EhA403BEPEiD"
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -603,7 +613,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 15,
|
|
|
|
"execution_count": 16,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
@ -619,7 +629,7 @@
|
|
|
|
" kernel='rbf', max_iter=-1, shrinking=True, tol=0.001, verbose=False)"
|
|
|
|
" kernel='rbf', max_iter=-1, shrinking=True, tol=0.001, verbose=False)"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"execution_count": 15,
|
|
|
|
"execution_count": 16,
|
|
|
|
"metadata": {},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -641,7 +651,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 16,
|
|
|
|
"execution_count": 17,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
@ -678,7 +688,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 17,
|
|
|
|
"execution_count": 18,
|
|
|
|
"metadata": {},
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -700,7 +710,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 18,
|
|
|
|
"execution_count": 19,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
@ -728,7 +738,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 19,
|
|
|
|
"execution_count": 20,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
@ -756,7 +766,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 20,
|
|
|
|
"execution_count": 21,
|
|
|
|
"metadata": {},
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -784,7 +794,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 21,
|
|
|
|
"execution_count": 22,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
@ -807,7 +817,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 22,
|
|
|
|
"execution_count": 23,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/",
|
|
|
|
"base_uri": "https://localhost:8080/",
|
|
|
@ -841,7 +851,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 23,
|
|
|
|
"execution_count": 24,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
@ -873,7 +883,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 24,
|
|
|
|
"execution_count": 25,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
@ -910,7 +920,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 25,
|
|
|
|
"execution_count": 26,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"id": "ESSAdQgwexIi"
|
|
|
|
"id": "ESSAdQgwexIi"
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -926,7 +936,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 26,
|
|
|
|
"execution_count": 27,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/",
|
|
|
|
"base_uri": "https://localhost:8080/",
|
|
|
@ -960,7 +970,7 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 27,
|
|
|
|
"execution_count": 28,
|
|
|
|
"metadata": {
|
|
|
|
"metadata": {
|
|
|
|
"colab": {
|
|
|
|
"colab": {
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
|
"base_uri": "https://localhost:8080/"
|
|
|
|