843 lines
720 KiB
Plaintext
843 lines
720 KiB
Plaintext
|
{
|
|||
|
"nbformat": 4,
|
|||
|
"nbformat_minor": 0,
|
|||
|
"metadata": {
|
|||
|
"colab": {
|
|||
|
"name": "Sadaei%20et%20Al%20-%20ExponentialyWeightedFTS.ipynb",
|
|||
|
"version": "0.3.2",
|
|||
|
"provenance": []
|
|||
|
},
|
|||
|
"kernelspec": {
|
|||
|
"display_name": "Python 3",
|
|||
|
"language": "python",
|
|||
|
"name": "python3"
|
|||
|
}
|
|||
|
},
|
|||
|
"cells": [
|
|||
|
{
|
|||
|
"cell_type": "markdown",
|
|||
|
"metadata": {
|
|||
|
"id": "view-in-github",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"source": [
|
|||
|
"[View in Colaboratory](https://colab.research.google.com/github/petroniocandido/pyFTS/blob/master/pyFTS/notebooks/GOOGLE%20COLAB%20Sadaei%20et%20Al%20-%20ExponentialyWeightedFTS.ipynb)"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "7RjZ5q1HligO",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"# First Order Exponentialy Weighted Fuzzy Time Series by Sadaei et al. (2013)\n",
|
|||
|
"\n",
|
|||
|
"H. J. Sadaei, R. Enayatifar, A. H. Abdullah, and A. Gani, “Short-term load forecasting using a hybrid model with a \n",
|
|||
|
"refined exponentially weighted fuzzy time series and an improved harmony search,” Int. J. Electr. Power Energy Syst., vol. 62, no. from 2005, pp. 118–129, 2014.\n"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "RYhNljmNligS",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"## Environment Setup"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "97jpJJ2sligU",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"### Library install/update"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "TIUHy938ligW",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {}
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"!pip3 install -U git+https://github.com/petroniocandido/pyFTS\n",
|
|||
|
"!pip3 install dill"
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": []
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "RLORwUr6lige",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"### External libraries import"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "m5A2AAXFligg",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {},
|
|||
|
"outputId": "313a66d2-c56c-4fc5-c9a5-03535195c176"
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"import warnings\n",
|
|||
|
"warnings.filterwarnings('ignore')\n",
|
|||
|
"\n",
|
|||
|
"import numpy as np\n",
|
|||
|
"import pandas as pd\n",
|
|||
|
"import matplotlib.pylab as plt\n",
|
|||
|
"import seaborn as sns\n",
|
|||
|
"\n",
|
|||
|
"%pylab inline"
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "stream",
|
|||
|
"text": [
|
|||
|
"Populating the interactive namespace from numpy and matplotlib\n"
|
|||
|
],
|
|||
|
"name": "stdout"
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "CJYpnhNYligq",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"### Common pyFTS imports "
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "0hSyUcGRligt",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {}
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"from pyFTS.common import Util as cUtil\n",
|
|||
|
"from pyFTS.benchmarks import benchmarks as bchmk, Util as bUtil\n",
|
|||
|
"from pyFTS.partitioners import Util as pUtil\n",
|
|||
|
"\n",
|
|||
|
"from pyFTS.models import sadaei\n"
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": []
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "7nTzPaNFligz",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"## Common data transformations"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "we6pdkswlig2",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {}
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"from pyFTS.common import Transformations\n",
|
|||
|
"\n",
|
|||
|
"tdiff = Transformations.Differential(1)\n",
|
|||
|
"\n",
|
|||
|
"boxcox = Transformations.BoxCox(0)"
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": []
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "D91oCJsDlig-",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"## Datasets"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "mZY70gJblihA",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"### Data Loading"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "rpNVwv6SlihC",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {}
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"from pyFTS.data import TAIEX, NASDAQ, SP500\n",
|
|||
|
"\n",
|
|||
|
"dataset_names = [\"TAIEX\", \"SP500\",\"NASDAQ\"]\n",
|
|||
|
"\n",
|
|||
|
"def get_dataset(name):\n",
|
|||
|
" if dataset_name == \"TAIEX\":\n",
|
|||
|
" return TAIEX.get_data()\n",
|
|||
|
" elif dataset_name == \"SP500\":\n",
|
|||
|
" return SP500.get_data()[11500:16000]\n",
|
|||
|
" elif dataset_name == \"NASDAQ\":\n",
|
|||
|
" return NASDAQ.get_data()\n",
|
|||
|
"\n",
|
|||
|
"\n",
|
|||
|
"train_split = 2000\n",
|
|||
|
"test_length = 200"
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": []
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "HcaE8FbMlihG",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"### Visualization"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "9I6Q375olihI",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {},
|
|||
|
"outputId": "a310d4a0-7c13-476e-c420-7801cdc8857b"
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"fig, ax = plt.subplots(nrows=2, ncols=3, figsize=[10,5])\n",
|
|||
|
"\n",
|
|||
|
"for count,dataset_name in enumerate(dataset_names):\n",
|
|||
|
" dataset = get_dataset(dataset_name)\n",
|
|||
|
" dataset_diff = tdiff.apply(dataset)\n",
|
|||
|
"\n",
|
|||
|
" ax[0][count].plot(dataset)\n",
|
|||
|
" ax[1][count].plot(dataset_diff)\n",
|
|||
|
" ax[0][count].set_title(dataset_name)"
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "display_data",
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAmoAAAE/CAYAAAD2ee+mAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4yLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvNQv5yAAAIABJREFUeJzsnXd4FOX2x79n0yD0EjoYCAEEpIug\nFBGkesUuVvSiXK+9XQV7F7tiwWvB8ruKoGIF6V167yWE0EsIEEhC6p7fH/PO7ruzs32TnV3ez/Pk\nYeadsrMhM3PeU76HmBkKhUKhUCgUCuthi/QFKBQKhUKhUCjMUYaaQqFQKBQKhUVRhppCoVAoFAqF\nRVGGmkKhUCgUCoVFUYaaQqFQKBQKhUVRhppCoVAoFAqFRVGGmkKhUCgUCoVFUYZalEJEedKPnYjO\nSuu3SPvdQURMRDcajr+UiA5I6wuIqNBw3j/Etn8Q0REiqi3tP5yIDhJRjYr4vgqFPxBRLyJaSkS5\nRHSCiP4mogvFfVAm/q5PE9F6IrpCHJMq7hH5b/9Z6ZxJRDRRHHeEiB41fGZ/ItpORAVENJ+Izqvo\n761QKGIXZahFKcxcVf8BsA/AP6Sx76RdRwI4AeB2P057v3xeZv6H+Kw/AMwD8B4AEFFNABMA/JuZ\nc8P5vRSKYCGi6gD+BPAhgNoAGgN4EUCR2GWZuF9qAvgSwBQiqiWdoqb0t/+yNP4CgHQA5wHoB+AJ\nIhosPrMugKkAnhWfuRrA5PL5hgqFO0SURUTHiKiKNHYXES2Q1omIMoloq8nx7YholpjYnCKiNUQ0\nVGy7VDgC9AnMASKaQkQXmpzH42eI7VcQ0UoiyieiHCL6HxE1DssvIcZRhloMI2b2fQGMBjCIiBqE\ncL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
|
"metadata": {
|
|||
|
"tags": []
|
|||
|
}
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "sb0igc80lihP",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"### Statistics"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "JMlYJZkLlihR",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {},
|
|||
|
"outputId": "99f9f1ed-15cd-48ed-f184-49e3091334f1"
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"from statsmodels.tsa.stattools import adfuller\n",
|
|||
|
"\n",
|
|||
|
"rows =[]\n",
|
|||
|
"\n",
|
|||
|
"for count,dataset_name in enumerate(dataset_names):\n",
|
|||
|
" row = [dataset_name]\n",
|
|||
|
" dataset = get_dataset(dataset_name)\n",
|
|||
|
" result = adfuller(dataset)\n",
|
|||
|
" row.extend([result[0],result[1]])\n",
|
|||
|
" row.extend([value for key, value in result[4].items()])\n",
|
|||
|
" rows.append(row)\n",
|
|||
|
" \n",
|
|||
|
"pd.DataFrame(rows,columns=['Dataset','ADF Statistic','p-value','Cr. Val. 1%','Cr. Val. 5%','Cr. Val. 10%'])\n"
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "execute_result",
|
|||
|
"data": {
|
|||
|
"text/html": [
|
|||
|
"<div>\n",
|
|||
|
"<style scoped>\n",
|
|||
|
" .dataframe tbody tr th:only-of-type {\n",
|
|||
|
" vertical-align: middle;\n",
|
|||
|
" }\n",
|
|||
|
"\n",
|
|||
|
" .dataframe tbody tr th {\n",
|
|||
|
" vertical-align: top;\n",
|
|||
|
" }\n",
|
|||
|
"\n",
|
|||
|
" .dataframe thead th {\n",
|
|||
|
" text-align: right;\n",
|
|||
|
" }\n",
|
|||
|
"</style>\n",
|
|||
|
"<table border=\"1\" class=\"dataframe\">\n",
|
|||
|
" <thead>\n",
|
|||
|
" <tr style=\"text-align: right;\">\n",
|
|||
|
" <th></th>\n",
|
|||
|
" <th>Dataset</th>\n",
|
|||
|
" <th>ADF Statistic</th>\n",
|
|||
|
" <th>p-value</th>\n",
|
|||
|
" <th>Cr. Val. 1%</th>\n",
|
|||
|
" <th>Cr. Val. 5%</th>\n",
|
|||
|
" <th>Cr. Val. 10%</th>\n",
|
|||
|
" </tr>\n",
|
|||
|
" </thead>\n",
|
|||
|
" <tbody>\n",
|
|||
|
" <tr>\n",
|
|||
|
" <th>0</th>\n",
|
|||
|
" <td>TAIEX</td>\n",
|
|||
|
" <td>-2.656728</td>\n",
|
|||
|
" <td>0.081830</td>\n",
|
|||
|
" <td>-3.431601</td>\n",
|
|||
|
" <td>-2.862093</td>\n",
|
|||
|
" <td>-2.567064</td>\n",
|
|||
|
" </tr>\n",
|
|||
|
" <tr>\n",
|
|||
|
" <th>1</th>\n",
|
|||
|
" <td>SP500</td>\n",
|
|||
|
" <td>-1.747171</td>\n",
|
|||
|
" <td>0.406987</td>\n",
|
|||
|
" <td>-3.431811</td>\n",
|
|||
|
" <td>-2.862186</td>\n",
|
|||
|
" <td>-2.567114</td>\n",
|
|||
|
" </tr>\n",
|
|||
|
" <tr>\n",
|
|||
|
" <th>2</th>\n",
|
|||
|
" <td>NASDAQ</td>\n",
|
|||
|
" <td>0.476224</td>\n",
|
|||
|
" <td>0.984132</td>\n",
|
|||
|
" <td>-3.432022</td>\n",
|
|||
|
" <td>-2.862279</td>\n",
|
|||
|
" <td>-2.567163</td>\n",
|
|||
|
" </tr>\n",
|
|||
|
" </tbody>\n",
|
|||
|
"</table>\n",
|
|||
|
"</div>"
|
|||
|
],
|
|||
|
"text/plain": [
|
|||
|
" Dataset ADF Statistic p-value Cr. Val. 1% Cr. Val. 5% Cr. Val. 10%\n",
|
|||
|
"0 TAIEX -2.656728 0.081830 -3.431601 -2.862093 -2.567064\n",
|
|||
|
"1 SP500 -1.747171 0.406987 -3.431811 -2.862186 -2.567114\n",
|
|||
|
"2 NASDAQ 0.476224 0.984132 -3.432022 -2.862279 -2.567163"
|
|||
|
]
|
|||
|
},
|
|||
|
"metadata": {
|
|||
|
"tags": []
|
|||
|
},
|
|||
|
"execution_count": 7
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "txDoTprzlihc",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"## Partitioning\n",
|
|||
|
"\n",
|
|||
|
"The best number of partitions of the Universe of Discourse is an optimization problem. The know more about partitioning schemes please look on the Partitioners notebook. To know more about benchmarking look on the Benchmarks notebook."
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "m1r6SQkHlihe",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {}
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"from pyFTS.partitioners import Grid, Util as pUtil\n",
|
|||
|
"from pyFTS.benchmarks import benchmarks as bchmk\n",
|
|||
|
"from pyFTS.models import chen\n",
|
|||
|
"\n",
|
|||
|
"tag = 'partitioning'\n",
|
|||
|
"_type = 'point'\n",
|
|||
|
"\n",
|
|||
|
"for dataset_name in dataset_names:\n",
|
|||
|
" dataset = get_dataset(dataset_name)\n",
|
|||
|
"\n",
|
|||
|
" bchmk.sliding_window_benchmarks(dataset, 1000, train=0.8, inc=0.2,\n",
|
|||
|
" methods=[sadaei.ExponentialyWeightedFTS],\n",
|
|||
|
" benchmark_models=False,\n",
|
|||
|
" transformations=[None],\n",
|
|||
|
" orders=[2,3],\n",
|
|||
|
" partitions=np.arange(10,100,2), \n",
|
|||
|
" progress=False, type=_type,\n",
|
|||
|
" file=\"benchmarks.db\", dataset=dataset_name, tag=tag)\n",
|
|||
|
"\n",
|
|||
|
" bchmk.sliding_window_benchmarks(dataset, 1000, train=0.8, inc=0.2,\n",
|
|||
|
" methods=[sadaei.ExponentialyWeightedFTS],\n",
|
|||
|
" benchmark_models=False,\n",
|
|||
|
" transformations=[tdiff],\n",
|
|||
|
" orders=[2,3],\n",
|
|||
|
" partitions=np.arange(3,30,1), \n",
|
|||
|
" progress=False, type=_type,\n",
|
|||
|
" file=\"benchmarks.db\", dataset=dataset_name, tag=tag)\n"
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": []
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "mv4jnvQXlihj",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {}
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"from pyFTS.benchmarks import Util as bUtil\n",
|
|||
|
"\n",
|
|||
|
"df1 = bUtil.get_dataframe_from_bd(\"benchmarks.db\",\n",
|
|||
|
" \"tag = 'partitioning' and model = 'EWFTS' and measure = 'rmse'and transformation is null\")\n",
|
|||
|
"\n",
|
|||
|
"df2 = bUtil.get_dataframe_from_bd(\"benchmarks.db\",\n",
|
|||
|
" \"tag = 'partitioning' and model = 'EWFTS' and measure = 'rmse' and transformation is not null\")\n",
|
|||
|
"\n",
|
|||
|
"fig, ax = plt.subplots(nrows=2, ncols=1, figsize=[15,7])\n",
|
|||
|
"\n",
|
|||
|
"g1 = sns.boxplot(x='Partitions', y='Value', hue='Dataset', data=df1, showfliers=False, ax=ax[0], \n",
|
|||
|
" palette=\"Set3\")\n",
|
|||
|
"box = g1.get_position()\n",
|
|||
|
"g1.set_position([box.x0, box.y0, box.width * 0.85, box.height]) \n",
|
|||
|
"g1.legend(loc='right', bbox_to_anchor=(1.15, 0.5), ncol=1)\n",
|
|||
|
"ax[0].set_title(\"Original data\")\n",
|
|||
|
"ax[0].set_ylabel(\"RMSE\")\n",
|
|||
|
"ax[0].set_xlabel(\"\")\n",
|
|||
|
"\n",
|
|||
|
"g2 = sns.boxplot(x='Partitions', y='Value', hue='Dataset', data=df2, showfliers=False, ax=ax[1], \n",
|
|||
|
" palette=\"Set3\")\n",
|
|||
|
"box = g2.get_position()\n",
|
|||
|
"g2.set_position([box.x0, box.y0, box.width * 0.85, box.height]) \n",
|
|||
|
"g2.legend(loc='right', bbox_to_anchor=(1.15, 0.5), ncol=1)\n",
|
|||
|
"ax[1].set_title(\"Differentiated data\")\n",
|
|||
|
"ax[1].set_ylabel(\"RMSE\")\n",
|
|||
|
"ax[1].set_xlabel(\"Number of partitions of the UoD\")"
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": []
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "5CnOjME5lihq",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"### Comparing the partitioning schemas"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "cEfSLIDpliht",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {},
|
|||
|
"outputId": "4c56c693-c3ff-4e6e-dd72-46a67ce942d6"
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"from pyFTS.partitioners import Grid, Util as pUtil\n",
|
|||
|
"\n",
|
|||
|
"fig, ax = plt.subplots(nrows=2, ncols=3, figsize=[20,5])\n",
|
|||
|
"\n",
|
|||
|
"\n",
|
|||
|
"partitioners = {}\n",
|
|||
|
"partitioners_diff = {}\n",
|
|||
|
"\n",
|
|||
|
"for count,dataset_name in enumerate(dataset_names):\n",
|
|||
|
" dataset = get_dataset(dataset_name)\n",
|
|||
|
"\n",
|
|||
|
" partitioner = Grid.GridPartitioner(data=dataset, npart=30)\n",
|
|||
|
" partitioners[dataset_name] = partitioner\n",
|
|||
|
" partitioner_diff = Grid.GridPartitioner(data=dataset, npart=10, transformation=tdiff)\n",
|
|||
|
" partitioners_diff[dataset_name] = partitioner_diff\n",
|
|||
|
"\n",
|
|||
|
" pUtil.plot_sets(dataset, [partitioner.sets], titles=[dataset_name], axis=ax[0][count])\n",
|
|||
|
" pUtil.plot_sets(dataset, [partitioner_diff.sets], titles=[''], axis=ax[1][count])"
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "display_data",
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABIQAAAFKCAYAAABsCIRVAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4yLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvNQv5yAAAIABJREFUeJzsvXm8ZMlV3/mLzLw317dlvqrqXa3e\nJJYZYRAgf8wYDDYIjIxtwIOwR2Is4MN4WGZAH7wAkllsJLCFEYNhBAIhkFiEkIyAQWKR1EILqAUS\nWnqpltTqtbrrZeZbcr1bzB9x4964cWN73U9Vr7ri9/nUJ7dbuZx3b5wT55xvBKGUwsvLy8vLy8vL\ny8vLy8vLy8vr6lHjcn8BLy8vLy8vLy8vLy8vLy8vL69LK58Q8vLy8vLy8vLy8vLy8vLy8rrK5BNC\nXl5eXl5eXl5eXl5eXl5eXleZfELIy8vLy8vLy8vLy8vLy8vL6yqTTwh5eXl5eXl5eXl5eXl5eXl5\nXWXyCSEvLy8vLy8vLy8vLy8vLy+vq0w+IeTl5eXl5eXl5eXl5eXl5eV1lcknhLyueBFCZsK/jBCy\nFB7/S+G4byOEUELI/yr9/68ghDwsPH4XIWQlve/b8tdeQAi5QAgZCsd/AyHkEULI1qX4vV5eXl5e\nxxMh5MsIIe8jhBwQQiaEkPcSQr449wtpPs4fEkI+TAj5+vz/3Jz7DNEX/Ijwnm1CyK/k/+8CIeT7\npc/8KkLIPYSQBSHknYSQZ1zq3+3l5eXl5eXlZZJPCHld8aKU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cvn/scH0DYL7aIhdfDTD7u9gs\ndbBZlqbW8RBw8
|
|||
|
"text/plain": [
|
|||
|
"<matplotlib.figure.Figure at 0x7f0b88dd9128>"
|
|||
|
]
|
|||
|
},
|
|||
|
"metadata": {
|
|||
|
"tags": []
|
|||
|
}
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "nurFZMXXlihz",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"## Fitting models"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "3FQpAccmlih0",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"### With original data"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "Z37TgAaUlih2",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {}
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"for count,dataset_name in enumerate(dataset_names):\n",
|
|||
|
" dataset = get_dataset(dataset_name)\n",
|
|||
|
"\n",
|
|||
|
" model1 = sadaei.ExponentialyWeightedFTS(partitioner=partitioners[dataset_name])\n",
|
|||
|
" model1.name=dataset_name\n",
|
|||
|
" model1.fit(dataset[:train_split], save_model=True, file_path='model1'+dataset_name, order=1)\n"
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": []
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "Nuc0W3xKlih5",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"### With transformed data"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "Q6B4Uflnlih6",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {}
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"for count,dataset_name in enumerate(dataset_names):\n",
|
|||
|
" dataset = get_dataset(dataset_name)\n",
|
|||
|
"\n",
|
|||
|
" model2 = sadaei.ExponentialyWeightedFTS(partitioner=partitioners_diff[dataset_name])\n",
|
|||
|
" model2.name=dataset_name\n",
|
|||
|
" model2.append_transformation(tdiff)\n",
|
|||
|
" model2.fit(dataset[:train_split], save_model=True, file_path='model2'+dataset_name, order=1)\n"
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": []
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "s3JM7zFHliiK",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"## Predicting with the models"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "f1y6WcPcliiL",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {},
|
|||
|
"outputId": "6229767d-027c-428a-ef52-4450780f24e4"
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"fig, ax = plt.subplots(nrows=3, ncols=1, figsize=[20,10])\n",
|
|||
|
"\n",
|
|||
|
"\n",
|
|||
|
"for count,dataset_name in enumerate(dataset_names):\n",
|
|||
|
" dataset = get_dataset(dataset_name)\n",
|
|||
|
" \n",
|
|||
|
" ax[count].plot(dataset[train_split:train_split+200])\n",
|
|||
|
"\n",
|
|||
|
" model1 = cUtil.load_obj('model1'+dataset_name)\n",
|
|||
|
"\n",
|
|||
|
" forecasts = model1.predict(dataset[train_split:train_split+200])\n",
|
|||
|
" \n",
|
|||
|
" ax[count].plot(forecasts)\n",
|
|||
|
" \n",
|
|||
|
" ax[count].set_title(dataset_name)\n",
|
|||
|
" \n",
|
|||
|
"plt.tight_layout()"
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "display_data",
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABZgAAALICAYAAADyhJW9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4yLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvNQv5yAAAIABJREFUeJzs3Xd8VFX6x/HPSW8kISEFUgih9xa6\nCooFbNjFgtjL6rqr+1vL6u7quus2ddVdGxZcXVFsWFFRRBSkJBBq6CSkQyAhkF7m/P6YoLSQwiST\nwPf9euWVmXPPPfe5kEzuPHPuc4y1FhERERERERERERGRpvJwdwAiIiIiIiIiIiIi0j4pwSwiIiIi\nIiIiIiIizaIEs4iIiIiIiIiIiIg0ixLMIiIiIiIiIiIiItIsSjCLiIiIiIiIiIiISLMowSwiIiIi\nIiIiIiIizaIEs4iIiIiIiIiIiIg0ixLMIiIiIiKHMcaUHPTlMMaUH/T8moP6XW+MscaYKw/bf4Ix\nJvug598ZYyoOG/fTum0XGGPyjTFhB/WfYozJMcaEtMb5ioiIiIg0lxLMIiIiIiKHsdYGHfgCMoEL\nDmp766Cu04FC4LpGDHvXweNaay+oO9anwLfAvwCMMaHAC8Ad1tpiV56XiIiIiIirebk7ABERERGR\n9sgY0xUYD1wOzDbGRFtr85s53N1AmjHmHGAqsNBa+4mLQhURERERaTFKMIuIiIiINM91QIq19gNj\nzAbgGuDJ5gxkrd1tjPkV8BZggX6uC1NEREREpOWoRIaIiIiISPNcB8yqezyLhstkPGuM2XvQ12OH\nbV8KhADzrLUFLo5VRERERKRFKMEsIiIiItJExphxQDfgnbqmWcBAY8yQY+x2t7U29KCv3x+2fQbw\nBnCuMWaM66MWEREREXE9lcgQEREREWm66YABVhljDm9f1dTBjDE3AXHA+UAK8IoxZqi1tsoFsYqI\niIiItBjNYBYRERERaQJjjB9wBXArMOSgr18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OIiIiIiIiIiIjUy+Gw/O2LjcSE+jNtTNfjGuvioTGEBnjz2uL0evvUOiwzvt/O4NgQ\nxiSGH9fx6hMe5MsTlw9i884S/vbFxhY5xsnCy90BiIiIiIiIiIiISNv1+do81uYU8+Tlg/Hz9jyu\nsfx9PLlqZDwvLdxGVmEZcWEBR/T5Yl0eO/aU8eC1wzDGdaUxDjehdyQ3jEtg5uIMqmoddAnxIzTA\nh44BPnQM8CY0wIfwIB+igv1aLIYTgRLMIiIiIiIiIiIiclRVNQ6emLeJPtEduGhojEvGnDa6KzO+\n384bSzJ46Lx+h2yz1vLiwm0kRgRydr9olxzvWO6f1IftBaV8nJpDadWRpTIiO/iy/KEzWzyO9sw0\nVFDb3ZKSkmxKSoq7wxARERERERERETnpbHl5OonZH+PhYXDlXGKHBYvFwxw6rsVZksMYgwvX9WuU\nI7KkFsr9owm4f0PrBtJGGGNWWGuTGuqnGcwiIiIiIiIiIiJyBIfDEp6zgHTvHnQfMwVcWK5iZ3EF\n763IYkKvCAbFhv7U/lFqDkWlVVw3tiseHq27fNzRzi7At0OrxtAeKcEsIiIiIiIiIiIiR1i9aTND\nKSa7zx2YiQ+6dOxoa5mfs5iPdtXwzbXj8fAwrM7ayz3zFvO7c/vgdVp3lx5PWk7rfgwgIiIiIiIi\nIiIi7ULq8kUA9Bw0xuVjG2O4YVw3tu8uZeHmAgBeXLiNYD8vrhoZ7/LjSctRgllEREREREREREQO\nUVlTS1H6SgD8Y
|
|||
|
"text/plain": [
|
|||
|
"<matplotlib.figure.Figure at 0x7f0b88998cf8>"
|
|||
|
]
|
|||
|
},
|
|||
|
"metadata": {
|
|||
|
"tags": []
|
|||
|
}
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "u4F8sQwhliiX",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {}
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"from pyFTS.benchmarks import Measures\n",
|
|||
|
"\n",
|
|||
|
"rows = []\n",
|
|||
|
"\n",
|
|||
|
"for count,dataset_name in enumerate(dataset_names):\n",
|
|||
|
" row = [dataset_name]\n",
|
|||
|
" \n",
|
|||
|
" dataset = get_dataset(dataset_name)\n",
|
|||
|
" \n",
|
|||
|
" test = dataset[train_split:train_split+200]\n",
|
|||
|
"\n",
|
|||
|
" model1 = cUtil.load_obj('model1'+dataset_name)\n",
|
|||
|
" \n",
|
|||
|
" row.extend(Measures.get_point_statistics(test, model1))\n",
|
|||
|
" \n",
|
|||
|
" rows.append(row)\n",
|
|||
|
" \n",
|
|||
|
" \n",
|
|||
|
"pd.DataFrame(rows,columns=[\"Dataset\",\"RMSE\",\"SMAPE\",\"Theil's U\"])\n",
|
|||
|
" \n",
|
|||
|
" \n",
|
|||
|
" "
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": []
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "OiCkP8Ualiie",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {},
|
|||
|
"outputId": "8a1750f9-fa56-4398-af08-1993f14305ef"
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"fig, ax = plt.subplots(nrows=3, ncols=1, figsize=[20,10])\n",
|
|||
|
"\n",
|
|||
|
"\n",
|
|||
|
"for count,dataset_name in enumerate(dataset_names):\n",
|
|||
|
" dataset = get_dataset(dataset_name)\n",
|
|||
|
" \n",
|
|||
|
" ax[count].plot(dataset[train_split:train_split+200])\n",
|
|||
|
"\n",
|
|||
|
" model1 = cUtil.load_obj('model2'+dataset_name)\n",
|
|||
|
"\n",
|
|||
|
" forecasts = model1.predict(dataset[train_split:train_split+200])\n",
|
|||
|
" \n",
|
|||
|
" ax[count].plot(forecasts)\n",
|
|||
|
" \n",
|
|||
|
" ax[count].set_title(dataset_name)\n",
|
|||
|
" \n",
|
|||
|
"plt.tight_layout()"
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": [
|
|||
|
{
|
|||
|
"output_type": "display_data",
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAABZgAAALICAYAAADyhJW9AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4yLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvNQv5yAAAIABJREFUeJzs3Xd4lMXexvHvpJEeCCGBkARCbwGC\noQkISAcFVDoiqICiKHZBjvV4jtjAhh5QUSwINpoICAoISguIFOlFekto6cnuvH9sfEWlhJCwBO7P\nde21m3nmeeZ+gidn88vsjLHWIiIiIiIiIiIiIiJyoTzcHUBEREREREREREREiiYVmEVERERERERE\nREQkX1RgFhEREREREREREZF8UYFZRERERERERERERPJFBWYRERERERERERERyRcVmEVERERERERE\nREQkX1RgFhEREREREREREZF8UYFZRERERORvjDEppz2cxpj0077ue1q/AcYYa4zp+bfzWxhj9p72\n9UJjTMbfrjsz99iNxpiDxpjQ0/p3McbsM8aEXIr7FRERERHJLxWYRURERET+xlob+McD2A3ceFrb\np6d17Q8kA7fl4bJDT7+utfbG3LFmAj8AYwCMMcWBd4Ah1toTBXlfIiIiIiIFzcvdAUREREREiiJj\nTDmgOdAdmGKMKW2tPZjPy90P/GaMaQf0AhZZa2cUUFQRERERkUKjArOIiIiISP7cBiRaa78yxmwE\n+gKv5udC1tqjxphhwKeABWoUXEwRERERkcKjJTJERERERPLnNmBS7utJnH+ZjDeMMcdPe/z7b8eX\nASHAd9baIwWcVURERESkUKjALCIiIiJygYwxTYBYYHJu0yQgzhhT9xyn3W+tLX7a48m/HR8PfAR0\nNMY0LvjUIiIiIiIFT0tkiIiIiIhcuP6AAdYYY/7evuZCL2aMuROIBm4AEoH3jDHx1tqsAsgqIiIi\nIlJoNINZREREROQCGGN8gR7AYKDuaY/7gD7GmAuaxGGMiQReBgZZazOB/wFJwMiCzC0iIiIiUhhU\nYBYRERERuTBdgXTgI2vtwT8ewARcnxBsf5bz3jLGpJz2WJXb/jYw2Vq7GMBaa4FBwAPGmJqFeysi\nIiIiIhfHuN6/ioiIiIiIiIiIiIhcGM1gFhEREREREREREZF8UYFZRERERERERERERPJFBWYRERER\nERERERERyRcVmEVEREREREREREQkX7zcHeB8wsLCbPny5d0dQ0REREREREREROSqsWrVqqPW2lLn\n63fZF5jLly9PYmKiu2OIiIiIiIiIiIiIXDWMMb/npZ+WyBARERERERERERGRfFGBWURERERERERE\nRETyRQVmEREREREREREREckXFZhFREREREREREREJF9UYBYRERERERERERGRfMlTgdkYs8sYs84Y\ns8YYk/i3Yw8bY6wxJiz3a2OMecMYs80Ys9YYU++0vv2NMVtzH/0L9lZERERERERERERE5FLyuoC+\nLa21R09vMMZEA22B3ac1dwAq5z4aAu8ADY0xocDTQAJggVXGmBnW2mMXkV9EREREREREREQEnA74\nbRok74S6fSA40t2JrgoXUmA+kzHAY8D009q6AB9Zay2wzBhT3BhTBmgBzLPWJgMYY+YB7YHPLjKD\niIiIiIiIiIiIXA6shew08Am4dGM6smHdF7D4VUja5mpb+ALUugUaD4UytS9dlqtQXgvMFvjOGGOB\ncdba8caYLsA+a+2vxpjT+5YF9pz29d7ctrO1/4MxZjAwGCAmJiaPEUVEREREREREROSSsBaObIKj\nW+DoVtcjaSsc3QaZJ6BGF+jwMgRFFF6GnCz4dRIsHg3Hf8cRXot5NV5knaM8d3jPpeTGKbB2CsRe\nB43vg0qtwUNb0hW0vBaYm1pr9xljwoF5xphNwBO4lscocNba8cB4gISEBFsYY4iIiIiIiIiIiEg+\nrXgXZj/659dBkRBWGWp3By9f1/Edi6D9C1CnN/x1gurFcTpg1YeuGcsn95FTOp5vqt/PUxujOLnb\nga+3ZWx2azpX7cKI8GWU2TQRJnWHUtWh92cQGltwWSRvBWZr7b7c58PGmKlAcyAW+GP2chSw2hjT\nANgHRJ92elRu2z5cy2Sc3r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5dwnHd2KTZzAV6Y1wzfF0qdhORY80oJeDWLw+NtyHHlljOGlbrXZ51+V8d63wsaZ\nsHpivq4lf1KBWURERERERERERM5rwebD1Di+gOOBFQkoW/OCzvXx8mBY68q8ndWRHA9fWPTiuU+Y\n9zRZphgvZdzE1Hua8HzXOIr7+1xEepeSgcUY3aMuo060YmtgfZg9/PzFbjknFZhFRERERERERETk\nnHIcTt75ZikNPDYRVK9bvq5RrXQw1SvF8hntseu/giObz9xx1xLYPIuxOZ25Lr4GdfOxHMa5NK0c\nxuDrKtHn6ACyPHzhqzsgJ7NAx7iaeLk7gIiIiIiIiIiIiFzevlq9lyrHFuHhbaFm13xf544msTwy\nsR19Aubitegl6Pb+Xzs4nTB3JCd9whl/qj3fNK9wkcnP7OG2Vflp+1EeTr6LNw+Ogpcqujb88w8F\nv9OegyOh6QOFkuFKoRnMIiIiIiIiIiIiclZpWTmMnreFHv6rsSUrQ3j1fF+rZdVwSoSVYZpPpzPP\nYl7/JRxYw6isHjSvEU2l8KCLTH9mPl4evNErnu8d8bxe4gmcdftAdEPwLwnpx2DvSvh1MiROKJTx\nrySawSwiIiIiIiIiIiJnNWHJTrJPHqG231pMjYfA5G+TPQAPD8PtTcrzn+mtuClwFp6nz2LOTof5\nz3IksBqfHW3EtBaVCugOzqxCqUCe6VyTx750MD0ngPCgYpTw96F4mA8l/L0p4e9DeJAXXQo1RdGn\nArOIiIiIiIiIi
|
|||
|
"text/plain": [
|
|||
|
"<matplotlib.figure.Figure at 0x7f0b8897afd0>"
|
|||
|
]
|
|||
|
},
|
|||
|
"metadata": {
|
|||
|
"tags": []
|
|||
|
}
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "jsoryiorliin",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {}
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"from pyFTS.benchmarks import Measures\n",
|
|||
|
"\n",
|
|||
|
"rows = []\n",
|
|||
|
"\n",
|
|||
|
"for count,dataset_name in enumerate(dataset_names):\n",
|
|||
|
" row = [dataset_name]\n",
|
|||
|
" \n",
|
|||
|
" dataset = get_dataset(dataset_name)\n",
|
|||
|
" \n",
|
|||
|
" test = dataset[train_split:train_split+200]\n",
|
|||
|
"\n",
|
|||
|
" model1 = cUtil.load_obj('model2'+dataset_name)\n",
|
|||
|
" \n",
|
|||
|
" row.extend(Measures.get_point_statistics(test, model1))\n",
|
|||
|
" \n",
|
|||
|
" rows.append(row)\n",
|
|||
|
" \n",
|
|||
|
" \n",
|
|||
|
"pd.DataFrame(rows,columns=[\"Dataset\",\"RMSE\",\"SMAPE\",\"Theil's U\"])\n",
|
|||
|
" \n",
|
|||
|
" \n",
|
|||
|
" "
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": []
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "vXjGpz2Bliit",
|
|||
|
"colab_type": "text"
|
|||
|
},
|
|||
|
"cell_type": "markdown",
|
|||
|
"source": [
|
|||
|
"## Residual Analysis"
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "p6zaYB7qliiu",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {},
|
|||
|
"outputId": "0275361d-7ef6-4da6-f574-571da43bd2b2"
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
"from pyFTS.benchmarks import ResidualAnalysis as ra\n",
|
|||
|
"\n",
|
|||
|
"for count,dataset_name in enumerate(dataset_names):\n",
|
|||
|
" dataset = get_dataset(dataset_name)\n",
|
|||
|
" \n",
|
|||
|
" model1 = cUtil.load_obj('model1'+dataset_name)\n",
|
|||
|
" model1 = cUtil.load_obj('model2'+dataset_name)\n",
|
|||
|
"\n",
|
|||
|
" ra.plot_residuals(dataset, [model1, model2])"
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": [
|
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M7CWioGZhGJ7YE/gqMJdoptazwD9CGWb2OCERkuhD7s90/gd7AVFew5vAb4Cr\nzOyBHK8xyXfD6/2TpI1E79NRmZXCsNhniD5A1gIfCo/L9brij3+ZKFHz+0Q/j/cQTaveUWR7G15P\n/z0pURNRoPImsIYoCPvXcOwh4HlguaRVoezTRLlMC4G/EQ2D3RyO/YToPXgGeJKoV6aVKEDsIt+1\nXSkKyTzOOeeccyUJPTM3mNneeStXkffkOOecc64oitYMOkNSi6QxRMNvv6l1uzJ5kOOcc66sJN2s\naEG352JlwyXNljQ/fB8WyiXpe4oWWnxGsXVTJE0L9edL6s7MOld+Ihq+W0s0XPUinUODdcOHq5xz\nzpWVpOOJ8ltuNbODQtk3iabjX6doivYwM/uipDOIcj/OIMpT+q6ZHRWSc+cCU4kSb+cBh5vZ2hq8\nJNegvCfHOedcWZnZX4gSW+POAW4Jt2+hc4Xcc4iCITOzOURrx+xBtFjjbDNbEwKb2UQrNTtXsF16\n47iRI0fa+PHja90MV2bz5s1bZWaj8tfcdfi13nM10PU+2syWhdvL6VwIcQzpi8YtCWXZynPya73n\nKuVa36WDnPHjxzN37txaN8OVmaSCVyHdVfi13nM14vVuZiapbLkSkqYTbbHAuHHj/FrvoUq51n24\nyjnnXDW8FYahCN9XhPKlpK+WOzaUZSvvwsxuNLOpZjZ11KhG6NRy1eJBjnPOuWqYRedCjtOINsRM\nlV8YZlkdDawPw1r3A6eE1YWHEa2Oe3+1G+0a2y49XOWcc678JN1OtEnmSElLiNZQuQ6YKekiolWD\nzwvV7yOaWbWAaO+njwGY2RpJXwGeCPWuMbPMZGbncvIgxznnXFmZ2QVZDnXZ9NKidUwuyXKem+nc\nRsC5ovlwlXPOO
|
|||
|
"text/plain": [
|
|||
|
"<matplotlib.figure.Figure at 0x7f1145edefd0>"
|
|||
|
]
|
|||
|
},
|
|||
|
"metadata": {
|
|||
|
"tags": []
|
|||
|
}
|
|||
|
},
|
|||
|
{
|
|||
|
"output_type": "display_data",
|
|||
|
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PyRtInqdjk4/KTSFfZrog2Md8MFwu66eV/z2LxJ1yPwZ0d/jPUTDpnfmGW9VqPb3Sg/1IUpS\nlgFriRKwT4Zj9wLzgBWS1oSyi4n6Li0CHiJq+ro+HLuW6DV4BniSqDammSg57KS767tYFDrvOOec\nc87lLdTIXG1m+3Z7cgl5DY5zzjnncqZoTqDTJdVLGk3U5PbHpONK5zU4zjnnnMuZpP5EzbkHEfUt\nupOoKW1jooGl8QTHOeecc1XHm6icc845V3WqfjG44cOH29ixY5MOw5XY448/vsbMRnR/ZnXx6702\n+fXuakmu13vVJzhjx45l7ty5SYfhSkxSzrOMVhO/3muTX++uluR6vXsTlXPOOeeqjic4zjnnnKs6\nJUlwJF0vaZWk52Jlh4eFt56SNFfSUaFckn4qaaGkZxRbTl3SNEkLwk9vFt9zzjnnXBUrVQ3ODcCU\ntLLvA183s8OJptP+fig/jWjq7AlEy9H/AiC2fsfRwFHA5ZJ2L3rkzjnnnKs4JUlwzOxBorUvOhQD\nu4XtwbSv7jsVuMkic4iWlN8LOBWYZWZrzWwd0YJ86UmTc84551yio6g+C9wt6YdEidZxoXw0sDh2\n3pJQlq28E0nTiWp/2Gef9BXtnXPOOVftkuxk/Engc2a2N/A54LpC3bGZXWNmk8xs0ogRNTc1hKsQ\nmfqmpR3P2h/NOedc15JMcKYBd4Tt/yXqVwOwFNg7dt6YUJat3LlKdQNdN7Nm7I/mnHOue0kmOMuA\n48P2icCCsD0TODd8ez0G2GBmy4G7gVMk7R46F58SylyNumf+Sk784f0sXrs16VB6JEvftLhs/dGc\nc851oyR9cCTdD
|
|||
|
"text/plain": [
|
|||
|
"<matplotlib.figure.Figure at 0x7f11461d7dd8>"
|
|||
|
]
|
|||
|
},
|
|||
|
"metadata": {
|
|||
|
"tags": []
|
|||
|
}
|
|||
|
},
|
|||
|
{
|
|||
|
"output_type": "display_data",
|
|||
|
"data": {
|
|||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAjgAAAI4CAYAAABndZP2AAA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8K+TPSBsQH4\n7/C49o4r/vFvEHXE/BnR3+NMotul6zsZb1Ep9vdMF/UgSlLeAdYTJWBfCNseARYAq8xsbSj7ElHf\npSXAk0SXvm4P235N9Bq8BDxP1BrTQJQcttHRed7dLHTaEREREemy0CJzq7vv12HlLFALjoiIiHSa\nRWMCnWZm5WY2kuiS299yHVeMWnBERESk08ysN9Fl3UOI+hbdT3QpbXNOAwuU4IiIiEjR0SUqERER\nKTpFPxnckCFDvLq6OtdhSIbNnz9/rbsP7bhmadB5Xxp03relc7/4pXveF32CU11dzbx583IdhmSY\nmaU9mmgp0HlfGnTet6Vzv/ile97rEpWIiIgUHSU4IiIiUnSU4IiIiEjRUYIjIiIiRUcJjoiIiBQd\nJTgiIiJSdJTgiOSYmd1uZmvM7JUU283MbjazWjN7ycyOzHaMIiKFRgmOSO79Djilne2nAmPDzxTg\nlizEJCJS0JTgSF6pXbOFLTt3J9321OJ1nD/taRoam7IcVWa5++PA+naqTALu9MjTwEAzG56d6ERE\nClPRj2QsheXEGx7nXcP7869LP9xm21fufYFVm3eyessuRg7slYPocmYksCxufXkoWxlfycymELXw\nMHr06KwF1xkTJkwAYM6cOR2W53NdEYDqqfenXXfpdadnMBJJRi04kndeW7k5afmwAT0B6NdTeXky\n7j7N3WvcvWbo0LbTtEyYMKH5A7u9ss6Wd3YfxWBPX4fuqCsi7VOCI3nD3dvd/uKyjQD071mRjXDy\nyQpg37j1UaFMR
|
|||
|
"text/plain": [
|
|||
|
"<matplotlib.figure.Figure at 0x7f1145991940>"
|
|||
|
]
|
|||
|
},
|
|||
|
"metadata": {
|
|||
|
"tags": []
|
|||
|
}
|
|||
|
}
|
|||
|
]
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "0j07WfWClii6",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {}
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
""
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": []
|
|||
|
},
|
|||
|
{
|
|||
|
"metadata": {
|
|||
|
"id": "Sf0Icfbflii9",
|
|||
|
"colab_type": "code",
|
|||
|
"colab": {}
|
|||
|
},
|
|||
|
"cell_type": "code",
|
|||
|
"source": [
|
|||
|
""
|
|||
|
],
|
|||
|
"execution_count": 0,
|
|||
|
"outputs": []
|
|||
|
}
|
|||
|
]
|
|||
|
}
|