---

title: GEFCom 2014 dataset


keywords: fastai
sidebar: home_sidebar

summary: "Download the GEFCom 2024 dataset."
description: "Download the GEFCom 2024 dataset."
nb_path: "nbs/data_datasets__gefcom2014.ipynb"
---
<!--

#################################################
### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ###
#################################################
# file to edit: nbs/data_datasets__gefcom2014.ipynb
# command to build the docs after a change: nbdev_build_docs

-->

<div class="container" id="notebook-container">
        
    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">
<div class="input">

<div class="inner_cell">
    <div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="kn">import</span> <span class="nn">matplotlib.pyplot</span> <span class="k">as</span> <span class="nn">plt</span>
<span class="kn">from</span> <span class="nn">matplotlib</span> <span class="kn">import</span> <span class="n">rcParams</span>
<span class="n">plt</span><span class="o">.</span><span class="n">rcParams</span><span class="p">[</span><span class="s1">&#39;font.family&#39;</span><span class="p">]</span> <span class="o">=</span> <span class="s1">&#39;serif&#39;</span>
<span class="n">FONTSIZE</span> <span class="o">=</span> <span class="mi">22</span>
</pre></div>

    </div>
</div>
</div>

</div>
    {% endraw %}

<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h1 id="GEFCom2014">GEFCom2014<a class="anchor-link" href="#GEFCom2014"> </a></h1>
</div>
</div>
</div>
    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="Extended" class="doc_header"><code>class</code> <code>Extended</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L43" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>Extended</code>(<strong><code>test_date</code></strong>:<code>str</code>=<em><code>'2016-12-27'</code></em>, <strong><code>name</code></strong>:<code>str</code>=<em><code>'Extended'</code></em>, <strong><code>freq</code></strong>:<code>str</code>=<em><code>'Y'</code></em>)</p>
</blockquote>
<p>Extended(test_date: str = '2016-12-27', name: str = 'Extended', freq: str = 'Y')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="Load" class="doc_header"><code>class</code> <code>Load</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L49" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>Load</code>(<strong><code>test_date</code></strong>:<code>str</code>=<em><code>'2016-12-27'</code></em>, <strong><code>name</code></strong>:<code>str</code>=<em><code>'Load'</code></em>, <strong><code>freq</code></strong>:<code>str</code>=<em><code>'H'</code></em>)</p>
</blockquote>
<p>Load(test_date: str = '2016-12-27', name: str = 'Load', freq: str = 'H')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="Price" class="doc_header"><code>class</code> <code>Price</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L55" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>Price</code>(<strong><code>test_date</code></strong>:<code>str</code>=<em><code>'2015-01-04'</code></em>, <strong><code>name</code></strong>:<code>str</code>=<em><code>'Price'</code></em>, <strong><code>freq</code></strong>:<code>str</code>=<em><code>'H'</code></em>)</p>
</blockquote>
<p>Price(test_date: str = '2015-01-04', name: str = 'Price', freq: str = 'H')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="Solar" class="doc_header"><code>class</code> <code>Solar</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L61" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>Solar</code>(<strong><code>test_date</code></strong>:<code>str</code>=<em><code>'2015-01-04'</code></em>, <strong><code>name</code></strong>:<code>str</code>=<em><code>'Solar'</code></em>, <strong><code>freq</code></strong>:<code>str</code>=<em><code>'H'</code></em>)</p>
</blockquote>
<p>Solar(test_date: str = '2015-01-04', name: str = 'Solar', freq: str = 'H')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="Wind" class="doc_header"><code>class</code> <code>Wind</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L67" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>Wind</code>(<strong><code>test_date</code></strong>:<code>str</code>=<em><code>'2016-01-04'</code></em>, <strong><code>name</code></strong>:<code>str</code>=<em><code>'Wind'</code></em>, <strong><code>freq</code></strong>:<code>str</code>=<em><code>'H'</code></em>)</p>
</blockquote>
<p>Wind(test_date: str = '2016-01-04', name: str = 'Wind', freq: str = 'H')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="GEFCom2014" class="doc_header"><code>class</code> <code>GEFCom2014</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L76" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>GEFCom2014</code>()</p>
</blockquote>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">
<div class="input">

<div class="inner_cell">
    <div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">GEFCom2014</span><span class="o">.</span><span class="n">download</span><span class="p">(</span><span class="sa">f</span><span class="s1">&#39;data&#39;</span><span class="p">)</span>
</pre></div>

    </div>
</div>
</div>

<div class="output_wrapper">
<div class="output">

<div class="output_area">

<div class="output_subarea output_stream output_stderr output_text">
<pre>100%|██████████| 126M/126M [00:03&lt;00:00, 35.9MiB/s] 
INFO:nixtla.data.datasets.utils:Successfully downloaded GEFCom2014.zip?dl=1, 126360077, bytes.
INFO:nixtla.data.datasets.utils:Successfully decompressed data/gefcom2014/GEFCom2014.zip?dl=1
INFO:__main__:Successfully decompressed data/gefcom2014/GEFCom2014 Data/GEFCom2014-E_V2.zip
INFO:__main__:Successfully decompressed data/gefcom2014/GEFCom2014 Data/GEFCom2014-L_V2.zip
INFO:__main__:Successfully decompressed data/gefcom2014/GEFCom2014 Data/GEFCom2014-P_V2.zip
INFO:__main__:Successfully decompressed data/gefcom2014/GEFCom2014 Data/GEFCom2014-S_V2.zip
INFO:__main__:Successfully decompressed data/gefcom2014/GEFCom2014 Data/GEFCom2014-W_V2.zip
</pre>
</div>
</div>

</div>
</div>

</div>
    {% endraw %}

<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h1 id="GEFCom2014-L:-Original-Electricity-Load-Task-Datasets">GEFCom2014-L: Original Electricity Load Task Datasets<a class="anchor-link" href="#GEFCom2014-L:-Original-Electricity-Load-Task-Datasets"> </a></h1><ul>
<li>Y: 5 years of hourly load data (augmented with tasks).</li>
<li>X: 11 years of 25 weather stations to be filtered (augmented with tasks).</li>
<li>Tasks: Fifteen one-month-ahead forecast quantiles of hourly loads on rolling basis.</li>
</ul>

</div>
</div>
</div>
    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="LoadTask1" class="doc_header"><code>class</code> <code>LoadTask1</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L119" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>LoadTask1</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'10/01/2010'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'11/01/2010'</code></em>)</p>
</blockquote>
<p>LoadTask1(test_start: str = '10/01/2010', test_end: str = '11/01/2010')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="LoadTask2" class="doc_header"><code>class</code> <code>LoadTask2</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L124" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>LoadTask2</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'11/01/2010'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'12/01/2010'</code></em>)</p>
</blockquote>
<p>LoadTask2(test_start: str = '11/01/2010', test_end: str = '12/01/2010')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="LoadTask3" class="doc_header"><code>class</code> <code>LoadTask3</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L129" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>LoadTask3</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'12/01/2010'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'01/01/2011'</code></em>)</p>
</blockquote>
<p>LoadTask3(test_start: str = '12/01/2010', test_end: str = '01/01/2011')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="LoadTask4" class="doc_header"><code>class</code> <code>LoadTask4</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L134" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>LoadTask4</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'01/01/2011'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'02/01/2011'</code></em>)</p>
</blockquote>
<p>LoadTask4(test_start: str = '01/01/2011', test_end: str = '02/01/2011')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="LoadTask5" class="doc_header"><code>class</code> <code>LoadTask5</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L139" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>LoadTask5</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'02/01/2011'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'03/01/2011'</code></em>)</p>
</blockquote>
<p>LoadTask5(test_start: str = '02/01/2011', test_end: str = '03/01/2011')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="LoadTask6" class="doc_header"><code>class</code> <code>LoadTask6</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L144" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>LoadTask6</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'03/01/2011'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'04/01/2011'</code></em>)</p>
</blockquote>
<p>LoadTask6(test_start: str = '03/01/2011', test_end: str = '04/01/2011')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="LoadTask7" class="doc_header"><code>class</code> <code>LoadTask7</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L149" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>LoadTask7</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'04/01/2011'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'05/01/2011'</code></em>)</p>
</blockquote>
<p>LoadTask7(test_start: str = '04/01/2011', test_end: str = '05/01/2011')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="LoadTask8" class="doc_header"><code>class</code> <code>LoadTask8</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L154" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>LoadTask8</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'05/01/2011'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'06/01/2011'</code></em>)</p>
</blockquote>
<p>LoadTask8(test_start: str = '05/01/2011', test_end: str = '06/01/2011')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="LoadTask9" class="doc_header"><code>class</code> <code>LoadTask9</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L159" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>LoadTask9</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'06/01/2011'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'07/01/2011'</code></em>)</p>
</blockquote>
<p>LoadTask9(test_start: str = '06/01/2011', test_end: str = '07/01/2011')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="LoadTask10" class="doc_header"><code>class</code> <code>LoadTask10</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L164" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>LoadTask10</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'07/01/2011'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'08/01/2011'</code></em>)</p>
</blockquote>
<p>LoadTask10(test_start: str = '07/01/2011', test_end: str = '08/01/2011')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="LoadTask11" class="doc_header"><code>class</code> <code>LoadTask11</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L169" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>LoadTask11</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'08/01/2011'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'09/01/2011'</code></em>)</p>
</blockquote>
<p>LoadTask11(test_start: str = '08/01/2011', test_end: str = '09/01/2011')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="LoadTask12" class="doc_header"><code>class</code> <code>LoadTask12</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L174" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>LoadTask12</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'09/01/2011'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'10/01/2011'</code></em>)</p>
</blockquote>
<p>LoadTask12(test_start: str = '09/01/2011', test_end: str = '10/01/2011')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="LoadTask13" class="doc_header"><code>class</code> <code>LoadTask13</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L179" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>LoadTask13</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'10/01/2011'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'11/01/2011'</code></em>)</p>
</blockquote>
<p>LoadTask13(test_start: str = '10/01/2011', test_end: str = '11/01/2011')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="LoadTask14" class="doc_header"><code>class</code> <code>LoadTask14</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L184" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>LoadTask14</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'11/01/2011'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'12/01/2011'</code></em>)</p>
</blockquote>
<p>LoadTask14(test_start: str = '11/01/2011', test_end: str = '12/01/2011')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="LoadTask15" class="doc_header"><code>class</code> <code>LoadTask15</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L189" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>LoadTask15</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'12/01/2011'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'01/01/2012'</code></em>)</p>
</blockquote>
<p>LoadTask15(test_start: str = '12/01/2011', test_end: str = '01/01/2012')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="LoadTask16" class="doc_header"><code>class</code> <code>LoadTask16</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L194" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>LoadTask16</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'01/01/2012'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'02/01/2012'</code></em>)</p>
</blockquote>
<p>LoadTask16(test_start: str = '01/01/2012', test_end: str = '02/01/2012')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="GEFCom2014_L" class="doc_header"><code>class</code> <code>GEFCom2014_L</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L208" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>GEFCom2014_L</code>()</p>
</blockquote>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">
<div class="input">

<div class="inner_cell">
    <div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">Y_df</span><span class="p">,</span> <span class="n">X_df</span><span class="p">,</span> <span class="n">benchmark_df</span> <span class="o">=</span> <span class="n">GEFCom2014_L</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="n">directory</span><span class="o">=</span><span class="s1">&#39;data&#39;</span><span class="p">,</span> <span class="n">group</span><span class="o">=</span><span class="s1">&#39;Task 14&#39;</span><span class="p">)</span>

<span class="c1">#ds = Y_df.ds.values[365*24:]</span>
<span class="c1">#y_true = Y_df.y.values[365*24:]</span>
<span class="n">ds</span> <span class="o">=</span> <span class="n">Y_df</span><span class="o">.</span><span class="n">ds</span><span class="o">.</span><span class="n">values</span><span class="p">[</span><span class="o">-</span><span class="mi">740</span><span class="p">:]</span>
<span class="n">y_true</span> <span class="o">=</span> <span class="n">Y_df</span><span class="o">.</span><span class="n">y</span><span class="o">.</span><span class="n">values</span><span class="p">[</span><span class="o">-</span><span class="mi">740</span><span class="p">:]</span>

<span class="n">x_plot</span> <span class="o">=</span> <span class="n">Y_df</span><span class="o">.</span><span class="n">ds</span><span class="o">.</span><span class="n">values</span>
<span class="n">x_plot_min</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">to_datetime</span><span class="p">(</span><span class="n">x_plot</span><span class="o">.</span><span class="n">min</span><span class="p">())</span><span class="o">.</span><span class="n">strftime</span><span class="p">(</span><span class="s1">&#39;%B </span><span class="si">%d</span><span class="s1">, %Y&#39;</span><span class="p">)</span>
<span class="n">x_plot_max</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">to_datetime</span><span class="p">(</span><span class="n">x_plot</span><span class="o">.</span><span class="n">max</span><span class="p">())</span><span class="o">.</span><span class="n">strftime</span><span class="p">(</span><span class="s1">&#39;%B </span><span class="si">%d</span><span class="s1">, %Y&#39;</span><span class="p">)</span>
<span class="n">x_axis_str</span> <span class="o">=</span> <span class="sa">f</span><span class="s1">&#39;Hours [</span><span class="si">{</span><span class="n">x_plot_min</span><span class="si">}</span><span class="s1">  to  </span><span class="si">{</span><span class="n">x_plot_max</span><span class="si">}</span><span class="s1">]&#39;</span>
<span class="n">y_axis_str</span> <span class="o">=</span> <span class="s1">&#39;Load (MW)&#39;</span>

<span class="n">fig</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">figure</span><span class="p">(</span><span class="n">figsize</span><span class="o">=</span><span class="p">(</span><span class="mi">15</span><span class="p">,</span> <span class="mi">4</span><span class="p">))</span>
<span class="n">fig</span><span class="o">.</span><span class="n">tight_layout</span><span class="p">()</span>
<span class="n">ax0</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">subplot2grid</span><span class="p">((</span><span class="mi">1</span><span class="p">,</span><span class="mi">1</span><span class="p">),(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">))</span>
<span class="n">axs</span> <span class="o">=</span> <span class="p">[</span><span class="n">ax0</span><span class="p">]</span>

<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">ds</span><span class="p">,</span> <span class="n">y_true</span><span class="p">,</span> <span class="n">color</span><span class="o">=</span><span class="s1">&#39;#628793&#39;</span><span class="p">,</span> <span class="n">linewidth</span><span class="o">=</span><span class="mf">0.4</span><span class="p">,</span> <span class="n">label</span><span class="o">=</span><span class="s1">&#39;true&#39;</span><span class="p">)</span>
<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">tick_params</span><span class="p">(</span><span class="n">labelsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="o">-</span><span class="mi">5</span><span class="p">)</span>
<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">set_xlabel</span><span class="p">(</span><span class="n">x_axis_str</span><span class="p">,</span> <span class="n">fontsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="p">)</span>
<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">set_ylabel</span><span class="p">(</span><span class="n">y_axis_str</span><span class="p">,</span> <span class="n">fontsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">ylim</span><span class="p">(</span><span class="mi">50</span><span class="p">,</span> <span class="mi">350</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">title</span><span class="p">(</span><span class="s1">&#39;GEFCom2014-L&#39;</span><span class="p">,</span> <span class="n">fontsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">grid</span><span class="p">()</span>
<span class="n">plt</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>
</pre></div>

    </div>
</div>
</div>

<div class="output_wrapper">
<div class="output">

<div class="output_area">



<div class="output_png output_subarea ">
<img src="data:image/png;base64,[encoded data, 49176 characters]
"
>
</div>

</div>

</div>
</div>

</div>
    {% endraw %}

<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h1 id="GEFCom2014-E:-Extended-2015-Electricity-Load-Task-Datasets">GEFCom2014-E: Extended 2015 Electricity Load Task Datasets<a class="anchor-link" href="#GEFCom2014-E:-Extended-2015-Electricity-Load-Task-Datasets"> </a></h1><ul>
<li>Y: Four years of hourly load data (augmented with tasks).</li>
<li>X: Six years of hourly temperature (augmented with tasks).</li>
<li>Task: Five one-year-ahead forecast quantiles of hourly loads on rolling basis.</li>
</ul>

</div>
</div>
</div>
    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="GEFCom2014_E" class="doc_header"><code>class</code> <code>GEFCom2014_E</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L299" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>GEFCom2014_E</code>()</p>
</blockquote>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">
<div class="input">

<div class="inner_cell">
    <div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">Y_df</span><span class="p">,</span> <span class="n">X_df</span> <span class="o">=</span> <span class="n">GEFCom2014_E</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="n">directory</span><span class="o">=</span><span class="s1">&#39;data&#39;</span><span class="p">)</span>

<span class="n">ds</span> <span class="o">=</span> <span class="n">Y_df</span><span class="o">.</span><span class="n">ds</span><span class="o">.</span><span class="n">values</span>
<span class="n">y_true</span> <span class="o">=</span> <span class="n">Y_df</span><span class="o">.</span><span class="n">y</span><span class="o">.</span><span class="n">values</span>

<span class="n">x_plot</span> <span class="o">=</span> <span class="n">Y_df</span><span class="o">.</span><span class="n">ds</span><span class="o">.</span><span class="n">values</span>
<span class="n">x_plot_min</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">to_datetime</span><span class="p">(</span><span class="n">x_plot</span><span class="o">.</span><span class="n">min</span><span class="p">())</span><span class="o">.</span><span class="n">strftime</span><span class="p">(</span><span class="s1">&#39;%B </span><span class="si">%d</span><span class="s1">, %Y&#39;</span><span class="p">)</span>
<span class="n">x_plot_max</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">to_datetime</span><span class="p">(</span><span class="n">x_plot</span><span class="o">.</span><span class="n">max</span><span class="p">())</span><span class="o">.</span><span class="n">strftime</span><span class="p">(</span><span class="s1">&#39;%B </span><span class="si">%d</span><span class="s1">, %Y&#39;</span><span class="p">)</span>
<span class="n">x_axis_str</span> <span class="o">=</span> <span class="sa">f</span><span class="s1">&#39;Hours [</span><span class="si">{</span><span class="n">x_plot_min</span><span class="si">}</span><span class="s1">  to  </span><span class="si">{</span><span class="n">x_plot_max</span><span class="si">}</span><span class="s1">]&#39;</span>
<span class="n">y_axis_str</span> <span class="o">=</span> <span class="s1">&#39;Load (MW)&#39;</span>

<span class="n">fig</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">figure</span><span class="p">(</span><span class="n">figsize</span><span class="o">=</span><span class="p">(</span><span class="mi">15</span><span class="p">,</span> <span class="mi">4</span><span class="p">))</span>
<span class="n">fig</span><span class="o">.</span><span class="n">tight_layout</span><span class="p">()</span>
<span class="n">ax0</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">subplot2grid</span><span class="p">((</span><span class="mi">1</span><span class="p">,</span><span class="mi">1</span><span class="p">),(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">))</span>
<span class="n">axs</span> <span class="o">=</span> <span class="p">[</span><span class="n">ax0</span><span class="p">]</span>

<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">ds</span><span class="p">,</span> <span class="n">y_true</span><span class="p">,</span> <span class="n">color</span><span class="o">=</span><span class="s1">&#39;#628793&#39;</span><span class="p">,</span> <span class="n">linewidth</span><span class="o">=</span><span class="mf">0.4</span><span class="p">,</span> <span class="n">label</span><span class="o">=</span><span class="s1">&#39;true&#39;</span><span class="p">)</span>
<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">tick_params</span><span class="p">(</span><span class="n">labelsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="o">-</span><span class="mi">5</span><span class="p">)</span>
<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">set_xlabel</span><span class="p">(</span><span class="n">x_axis_str</span><span class="p">,</span> <span class="n">fontsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="p">)</span>
<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">set_ylabel</span><span class="p">(</span><span class="n">y_axis_str</span><span class="p">,</span> <span class="n">fontsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">ylim</span><span class="p">(</span><span class="mi">1800</span><span class="p">,</span> <span class="mi">5800</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">title</span><span class="p">(</span><span class="s1">&#39;GEFCom2014-E&#39;</span><span class="p">,</span> <span class="n">fontsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">grid</span><span class="p">()</span>
<span class="n">plt</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>
</pre></div>

    </div>
</div>
</div>

<div class="output_wrapper">
<div class="output">

<div class="output_area">



<div class="output_png output_subarea ">
<img src="data:image/png;base64,[encoded data, 65256 characters]
"
>
</div>

</div>

</div>
</div>

</div>
    {% endraw %}

<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h1 id="GEFCOM2014-P:-Electricity-Price-Task-Datasets">GEFCOM2014-P: Electricity Price Task Datasets<a class="anchor-link" href="#GEFCOM2014-P:-Electricity-Price-Task-Datasets"> </a></h1><ul>
<li>Y: Hourly electricity price</li>
<li>X: Zonal and system load day-ahead forecasts</li>
<li>Tasks: Fifteen one-day-ahead forecast quantiles of hourly price on rolling basis.</li>
</ul>

</div>
</div>
</div>
    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="PriceTask1" class="doc_header"><code>class</code> <code>PriceTask1</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L328" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>PriceTask1</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'06/16/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'06/17/2013'</code></em>)</p>
</blockquote>
<p>PriceTask1(test_start: str = '06/16/2013', test_end: str = '06/17/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="PriceTask2" class="doc_header"><code>class</code> <code>PriceTask2</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L333" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>PriceTask2</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'06/17/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'06/18/2013'</code></em>)</p>
</blockquote>
<p>PriceTask2(test_start: str = '06/17/2013', test_end: str = '06/18/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="PriceTask3" class="doc_header"><code>class</code> <code>PriceTask3</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L338" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>PriceTask3</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'06/24/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'06/25/2013'</code></em>)</p>
</blockquote>
<p>PriceTask3(test_start: str = '06/24/2013', test_end: str = '06/25/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="PriceTask4" class="doc_header"><code>class</code> <code>PriceTask4</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L343" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>PriceTask4</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'07/04/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'07/05/2013'</code></em>)</p>
</blockquote>
<p>PriceTask4(test_start: str = '07/04/2013', test_end: str = '07/05/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="PriceTask5" class="doc_header"><code>class</code> <code>PriceTask5</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L348" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>PriceTask5</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'07/09/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'07/10/2013'</code></em>)</p>
</blockquote>
<p>PriceTask5(test_start: str = '07/09/2013', test_end: str = '07/10/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="PriceTask6" class="doc_header"><code>class</code> <code>PriceTask6</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L353" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>PriceTask6</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'07/13/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'07/14/2013'</code></em>)</p>
</blockquote>
<p>PriceTask6(test_start: str = '07/13/2013', test_end: str = '07/14/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="PriceTask7" class="doc_header"><code>class</code> <code>PriceTask7</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L358" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>PriceTask7</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'07/16/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'07/17/2013'</code></em>)</p>
</blockquote>
<p>PriceTask7(test_start: str = '07/16/2013', test_end: str = '07/17/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="PriceTask8" class="doc_header"><code>class</code> <code>PriceTask8</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L363" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>PriceTask8</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'07/18/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'07/19/2013'</code></em>)</p>
</blockquote>
<p>PriceTask8(test_start: str = '07/18/2013', test_end: str = '07/19/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="PriceTask9" class="doc_header"><code>class</code> <code>PriceTask9</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L368" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>PriceTask9</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'07/19/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'07/20/2013'</code></em>)</p>
</blockquote>
<p>PriceTask9(test_start: str = '07/19/2013', test_end: str = '07/20/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="PriceTask10" class="doc_header"><code>class</code> <code>PriceTask10</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L373" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>PriceTask10</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'07/20/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'07/21/2013'</code></em>)</p>
</blockquote>
<p>PriceTask10(test_start: str = '07/20/2013', test_end: str = '07/21/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="PriceTask11" class="doc_header"><code>class</code> <code>PriceTask11</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L378" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>PriceTask11</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'07/24/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'07/25/2013'</code></em>)</p>
</blockquote>
<p>PriceTask11(test_start: str = '07/24/2013', test_end: str = '07/25/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="PriceTask12" class="doc_header"><code>class</code> <code>PriceTask12</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L383" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>PriceTask12</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'07/25/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'07/26/2013'</code></em>)</p>
</blockquote>
<p>PriceTask12(test_start: str = '07/25/2013', test_end: str = '07/26/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="PriceTask13" class="doc_header"><code>class</code> <code>PriceTask13</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L388" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>PriceTask13</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'12/07/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'12/08/2013'</code></em>)</p>
</blockquote>
<p>PriceTask13(test_start: str = '12/07/2013', test_end: str = '12/08/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="PriceTask14" class="doc_header"><code>class</code> <code>PriceTask14</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L393" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>PriceTask14</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'12/08/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'12/09/2013'</code></em>)</p>
</blockquote>
<p>PriceTask14(test_start: str = '12/08/2013', test_end: str = '12/09/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="PriceTask15" class="doc_header"><code>class</code> <code>PriceTask15</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L398" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>PriceTask15</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'12/17/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'12/18/2013'</code></em>)</p>
</blockquote>
<p>PriceTask15(test_start: str = '12/17/2013', test_end: str = '12/18/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="GEFCom2014_P" class="doc_header"><code>class</code> <code>GEFCom2014_P</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L412" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>GEFCom2014_P</code>()</p>
</blockquote>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">
<div class="input">

<div class="inner_cell">
    <div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">Y_df</span><span class="p">,</span> <span class="n">X_df</span><span class="p">,</span> <span class="n">benchmark_df</span> <span class="o">=</span> <span class="n">GEFCom2014_P</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="n">directory</span><span class="o">=</span><span class="s1">&#39;data&#39;</span><span class="p">,</span> <span class="n">group</span><span class="o">=</span><span class="s1">&#39;Task 15&#39;</span><span class="p">)</span>

<span class="n">ds</span> <span class="o">=</span> <span class="n">Y_df</span><span class="o">.</span><span class="n">ds</span><span class="o">.</span><span class="n">values</span>
<span class="n">y_true</span> <span class="o">=</span> <span class="n">Y_df</span><span class="o">.</span><span class="n">y</span><span class="o">.</span><span class="n">values</span>

<span class="n">x_plot</span> <span class="o">=</span> <span class="n">Y_df</span><span class="o">.</span><span class="n">ds</span><span class="o">.</span><span class="n">values</span>
<span class="n">x_plot_min</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">to_datetime</span><span class="p">(</span><span class="n">x_plot</span><span class="o">.</span><span class="n">min</span><span class="p">())</span><span class="o">.</span><span class="n">strftime</span><span class="p">(</span><span class="s1">&#39;%B </span><span class="si">%d</span><span class="s1">, %Y&#39;</span><span class="p">)</span>
<span class="n">x_plot_max</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">to_datetime</span><span class="p">(</span><span class="n">x_plot</span><span class="o">.</span><span class="n">max</span><span class="p">())</span><span class="o">.</span><span class="n">strftime</span><span class="p">(</span><span class="s1">&#39;%B </span><span class="si">%d</span><span class="s1">, %Y&#39;</span><span class="p">)</span>
<span class="n">x_axis_str</span> <span class="o">=</span> <span class="sa">f</span><span class="s1">&#39;Hours [</span><span class="si">{</span><span class="n">x_plot_min</span><span class="si">}</span><span class="s1">  to  </span><span class="si">{</span><span class="n">x_plot_max</span><span class="si">}</span><span class="s1">]&#39;</span>
<span class="n">y_axis_str</span> <span class="o">=</span> <span class="s1">&#39;Price [USD/MWh]&#39;</span>

<span class="n">fig</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">figure</span><span class="p">(</span><span class="n">figsize</span><span class="o">=</span><span class="p">(</span><span class="mi">15</span><span class="p">,</span> <span class="mi">4</span><span class="p">))</span>
<span class="n">fig</span><span class="o">.</span><span class="n">tight_layout</span><span class="p">()</span>
<span class="n">ax0</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">subplot2grid</span><span class="p">((</span><span class="mi">1</span><span class="p">,</span><span class="mi">1</span><span class="p">),(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">))</span>
<span class="n">axs</span> <span class="o">=</span> <span class="p">[</span><span class="n">ax0</span><span class="p">]</span>

<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">ds</span><span class="p">,</span> <span class="n">y_true</span><span class="p">,</span> <span class="n">color</span><span class="o">=</span><span class="s1">&#39;#628793&#39;</span><span class="p">,</span> <span class="n">linewidth</span><span class="o">=</span><span class="mf">0.4</span><span class="p">,</span> <span class="n">label</span><span class="o">=</span><span class="s1">&#39;true&#39;</span><span class="p">)</span>
<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">tick_params</span><span class="p">(</span><span class="n">labelsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="o">-</span><span class="mi">5</span><span class="p">)</span>
<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">set_xlabel</span><span class="p">(</span><span class="n">x_axis_str</span><span class="p">,</span> <span class="n">fontsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="p">)</span>
<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">set_ylabel</span><span class="p">(</span><span class="n">y_axis_str</span><span class="p">,</span> <span class="n">fontsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">title</span><span class="p">(</span><span class="s1">&#39;GEFCom2014-P&#39;</span><span class="p">,</span> <span class="n">fontsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">grid</span><span class="p">()</span>
<span class="n">plt</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>
</pre></div>

    </div>
</div>
</div>

<div class="output_wrapper">
<div class="output">

<div class="output_area">



<div class="output_png output_subarea ">
<img src="data:image/png;base64,[encoded data, 65740 characters]
"
>
</div>

</div>

</div>
</div>

</div>
    {% endraw %}

<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h1 id="GEFCOM2014-W:-Wind-Power-Generation-Task-Datasets">GEFCOM2014-W: Wind Power Generation Task Datasets<a class="anchor-link" href="#GEFCOM2014-W:-Wind-Power-Generation-Task-Datasets"> </a></h1><ul>
<li>Y: 10 target wind power series, for 10 different Australian wind farms.</li>
<li>X: Wind forecasts at 10m and 100m height for the zonal (u) and meridional (v) wind components (winning submission used external data).</li>
<li>Tasks: Fifteen one-month-ahead hourly wind power generation for 10 farms.</li>
</ul>

</div>
</div>
</div>
    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="WindTask1" class="doc_header"><code>class</code> <code>WindTask1</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L487" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>WindTask1</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'10/01/2012'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'11/01/2012'</code></em>)</p>
</blockquote>
<p>WindTask1(test_start: str = '10/01/2012', test_end: str = '11/01/2012')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="WindTask2" class="doc_header"><code>class</code> <code>WindTask2</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L492" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>WindTask2</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'11/01/2012'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'12/01/2012'</code></em>)</p>
</blockquote>
<p>WindTask2(test_start: str = '11/01/2012', test_end: str = '12/01/2012')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="WindTask3" class="doc_header"><code>class</code> <code>WindTask3</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L497" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>WindTask3</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'12/01/2012'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'01/01/2013'</code></em>)</p>
</blockquote>
<p>WindTask3(test_start: str = '12/01/2012', test_end: str = '01/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="WindTask4" class="doc_header"><code>class</code> <code>WindTask4</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L502" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>WindTask4</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'01/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'02/01/2013'</code></em>)</p>
</blockquote>
<p>WindTask4(test_start: str = '01/01/2013', test_end: str = '02/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="WindTask5" class="doc_header"><code>class</code> <code>WindTask5</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L507" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>WindTask5</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'02/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'03/01/2013'</code></em>)</p>
</blockquote>
<p>WindTask5(test_start: str = '02/01/2013', test_end: str = '03/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="WindTask6" class="doc_header"><code>class</code> <code>WindTask6</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L512" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>WindTask6</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'03/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'04/01/2013'</code></em>)</p>
</blockquote>
<p>WindTask6(test_start: str = '03/01/2013', test_end: str = '04/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="WindTask7" class="doc_header"><code>class</code> <code>WindTask7</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L517" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>WindTask7</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'04/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'05/01/2013'</code></em>)</p>
</blockquote>
<p>WindTask7(test_start: str = '04/01/2013', test_end: str = '05/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="WindTask8" class="doc_header"><code>class</code> <code>WindTask8</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L522" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>WindTask8</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'05/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'06/01/2013'</code></em>)</p>
</blockquote>
<p>WindTask8(test_start: str = '05/01/2013', test_end: str = '06/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="WindTask9" class="doc_header"><code>class</code> <code>WindTask9</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L527" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>WindTask9</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'06/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'07/01/2013'</code></em>)</p>
</blockquote>
<p>WindTask9(test_start: str = '06/01/2013', test_end: str = '07/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="WindTask10" class="doc_header"><code>class</code> <code>WindTask10</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L532" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>WindTask10</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'07/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'08/01/2013'</code></em>)</p>
</blockquote>
<p>WindTask10(test_start: str = '07/01/2013', test_end: str = '08/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="WindTask11" class="doc_header"><code>class</code> <code>WindTask11</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L537" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>WindTask11</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'08/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'09/01/2013'</code></em>)</p>
</blockquote>
<p>WindTask11(test_start: str = '08/01/2013', test_end: str = '09/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="WindTask12" class="doc_header"><code>class</code> <code>WindTask12</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L542" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>WindTask12</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'09/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'10/01/2013'</code></em>)</p>
</blockquote>
<p>WindTask12(test_start: str = '09/01/2013', test_end: str = '10/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="WindTask13" class="doc_header"><code>class</code> <code>WindTask13</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L547" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>WindTask13</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'10/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'11/01/2013'</code></em>)</p>
</blockquote>
<p>WindTask13(test_start: str = '10/01/2013', test_end: str = '11/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="WindTask14" class="doc_header"><code>class</code> <code>WindTask14</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L552" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>WindTask14</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'11/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'12/01/2013'</code></em>)</p>
</blockquote>
<p>WindTask14(test_start: str = '11/01/2013', test_end: str = '12/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="WindTask15" class="doc_header"><code>class</code> <code>WindTask15</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L557" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>WindTask15</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'12/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'01/01/2014'</code></em>)</p>
</blockquote>
<p>WindTask15(test_start: str = '12/01/2013', test_end: str = '01/01/2014')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="GEFCom2014_W" class="doc_header"><code>class</code> <code>GEFCom2014_W</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L571" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>GEFCom2014_W</code>()</p>
</blockquote>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">
<div class="input">

<div class="inner_cell">
    <div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">Y_df</span><span class="p">,</span> <span class="n">X_df</span><span class="p">,</span> <span class="n">benchmark_df</span> <span class="o">=</span> <span class="n">GEFCom2014_W</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="n">directory</span><span class="o">=</span><span class="s1">&#39;data&#39;</span><span class="p">,</span> <span class="n">group</span><span class="o">=</span><span class="s1">&#39;Task 15&#39;</span><span class="p">)</span>

<span class="n">Y_df</span> <span class="o">=</span> <span class="n">Y_df</span><span class="p">[</span><span class="n">Y_df</span><span class="o">.</span><span class="n">unique_id</span><span class="o">==</span><span class="mi">2</span><span class="p">]</span>

<span class="n">ds</span> <span class="o">=</span> <span class="n">Y_df</span><span class="o">.</span><span class="n">ds</span><span class="o">.</span><span class="n">values</span>
<span class="n">y_true</span> <span class="o">=</span> <span class="n">Y_df</span><span class="o">.</span><span class="n">y</span><span class="o">.</span><span class="n">values</span>

<span class="n">x_plot</span> <span class="o">=</span> <span class="n">Y_df</span><span class="o">.</span><span class="n">ds</span><span class="o">.</span><span class="n">values</span>
<span class="n">x_plot_min</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">to_datetime</span><span class="p">(</span><span class="n">x_plot</span><span class="o">.</span><span class="n">min</span><span class="p">())</span><span class="o">.</span><span class="n">strftime</span><span class="p">(</span><span class="s1">&#39;%B </span><span class="si">%d</span><span class="s1">, %Y&#39;</span><span class="p">)</span>
<span class="n">x_plot_max</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">to_datetime</span><span class="p">(</span><span class="n">x_plot</span><span class="o">.</span><span class="n">max</span><span class="p">())</span><span class="o">.</span><span class="n">strftime</span><span class="p">(</span><span class="s1">&#39;%B </span><span class="si">%d</span><span class="s1">, %Y&#39;</span><span class="p">)</span>
<span class="n">x_axis_str</span> <span class="o">=</span> <span class="sa">f</span><span class="s1">&#39;Hours [</span><span class="si">{</span><span class="n">x_plot_min</span><span class="si">}</span><span class="s1">  to  </span><span class="si">{</span><span class="n">x_plot_max</span><span class="si">}</span><span class="s1">]&#39;</span>
<span class="n">y_axis_str</span> <span class="o">=</span> <span class="s1">&#39;Power&#39;</span>

<span class="n">fig</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">figure</span><span class="p">(</span><span class="n">figsize</span><span class="o">=</span><span class="p">(</span><span class="mi">15</span><span class="p">,</span> <span class="mi">4</span><span class="p">))</span>
<span class="n">fig</span><span class="o">.</span><span class="n">tight_layout</span><span class="p">()</span>
<span class="n">ax0</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">subplot2grid</span><span class="p">((</span><span class="mi">1</span><span class="p">,</span><span class="mi">1</span><span class="p">),(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">))</span>
<span class="n">axs</span> <span class="o">=</span> <span class="p">[</span><span class="n">ax0</span><span class="p">]</span>

<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">ds</span><span class="p">,</span> <span class="n">y_true</span><span class="p">,</span> <span class="n">color</span><span class="o">=</span><span class="s1">&#39;#628793&#39;</span><span class="p">,</span> <span class="n">linewidth</span><span class="o">=</span><span class="mf">0.4</span><span class="p">,</span> <span class="n">label</span><span class="o">=</span><span class="s1">&#39;true&#39;</span><span class="p">)</span>
<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">tick_params</span><span class="p">(</span><span class="n">labelsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="o">-</span><span class="mi">5</span><span class="p">)</span>
<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">set_xlabel</span><span class="p">(</span><span class="n">x_axis_str</span><span class="p">,</span> <span class="n">fontsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="p">)</span>
<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">set_ylabel</span><span class="p">(</span><span class="n">y_axis_str</span><span class="p">,</span> <span class="n">fontsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">title</span><span class="p">(</span><span class="s1">&#39;GEFCom2014-W&#39;</span><span class="p">,</span> <span class="n">fontsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">grid</span><span class="p">()</span>
<span class="n">plt</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>
</pre></div>

    </div>
</div>
</div>

<div class="output_wrapper">
<div class="output">

<div class="output_area">

<div class="output_subarea output_stream output_stderr output_text">
<pre>INFO:__main__:Successfully decompressed Wind tasks
</pre>
</div>
</div>

<div class="output_area">



<div class="output_png output_subarea ">
<img src="data:image/png;base64,[encoded data, 136432 characters]
"
>
</div>

</div>

</div>
</div>

</div>
    {% endraw %}

<div class="cell border-box-sizing text_cell rendered"><div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h1 id="GEFCom2014-S:-Solar-Power-Generation-Task-Datasets">GEFCom2014-S: Solar Power Generation Task Datasets<a class="anchor-link" href="#GEFCom2014-S:-Solar-Power-Generation-Task-Datasets"> </a></h1><ul>
<li>Y: 3 target solar power series, for 3 different solar power plants.</li>
<li>X: 12 weather variables associated to the solar power plants.</li>
<li>Tasks: Fifteen one-month-ahead hourly solar power generation for 3 power platns.</li>
</ul>

</div>
</div>
</div>
    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="SolarTask1" class="doc_header"><code>class</code> <code>SolarTask1</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L635" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>SolarTask1</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'04/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'05/01/2013'</code></em>)</p>
</blockquote>
<p>SolarTask1(test_start: str = '04/01/2013', test_end: str = '05/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="SolarTask2" class="doc_header"><code>class</code> <code>SolarTask2</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L640" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>SolarTask2</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'05/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'06/01/2013'</code></em>)</p>
</blockquote>
<p>SolarTask2(test_start: str = '05/01/2013', test_end: str = '06/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="SolarTask3" class="doc_header"><code>class</code> <code>SolarTask3</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L645" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>SolarTask3</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'06/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'07/01/2013'</code></em>)</p>
</blockquote>
<p>SolarTask3(test_start: str = '06/01/2013', test_end: str = '07/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="SolarTask4" class="doc_header"><code>class</code> <code>SolarTask4</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L650" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>SolarTask4</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'07/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'08/01/2013'</code></em>)</p>
</blockquote>
<p>SolarTask4(test_start: str = '07/01/2013', test_end: str = '08/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="SolarTask5" class="doc_header"><code>class</code> <code>SolarTask5</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L655" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>SolarTask5</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'08/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'09/01/2013'</code></em>)</p>
</blockquote>
<p>SolarTask5(test_start: str = '08/01/2013', test_end: str = '09/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="SolarTask6" class="doc_header"><code>class</code> <code>SolarTask6</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L660" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>SolarTask6</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'09/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'10/01/2013'</code></em>)</p>
</blockquote>
<p>SolarTask6(test_start: str = '09/01/2013', test_end: str = '10/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="SolarTask7" class="doc_header"><code>class</code> <code>SolarTask7</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L665" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>SolarTask7</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'10/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'11/01/2013'</code></em>)</p>
</blockquote>
<p>SolarTask7(test_start: str = '10/01/2013', test_end: str = '11/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="SolarTask8" class="doc_header"><code>class</code> <code>SolarTask8</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L670" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>SolarTask8</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'11/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'12/01/2013'</code></em>)</p>
</blockquote>
<p>SolarTask8(test_start: str = '11/01/2013', test_end: str = '12/01/2013')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="SolarTask9" class="doc_header"><code>class</code> <code>SolarTask9</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L675" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>SolarTask9</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'12/01/2013'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'01/01/2014'</code></em>)</p>
</blockquote>
<p>SolarTask9(test_start: str = '12/01/2013', test_end: str = '01/01/2014')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="SolarTask10" class="doc_header"><code>class</code> <code>SolarTask10</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L680" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>SolarTask10</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'01/01/2014'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'02/01/2014'</code></em>)</p>
</blockquote>
<p>SolarTask10(test_start: str = '01/01/2014', test_end: str = '02/01/2014')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="SolarTask11" class="doc_header"><code>class</code> <code>SolarTask11</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L685" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>SolarTask11</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'02/01/2014'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'03/01/2014'</code></em>)</p>
</blockquote>
<p>SolarTask11(test_start: str = '02/01/2014', test_end: str = '03/01/2014')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="SolarTask12" class="doc_header"><code>class</code> <code>SolarTask12</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L690" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>SolarTask12</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'03/01/2014'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'04/01/2014'</code></em>)</p>
</blockquote>
<p>SolarTask12(test_start: str = '03/01/2014', test_end: str = '04/01/2014')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="SolarTask13" class="doc_header"><code>class</code> <code>SolarTask13</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L695" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>SolarTask13</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'04/01/2014'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'05/01/2014'</code></em>)</p>
</blockquote>
<p>SolarTask13(test_start: str = '04/01/2014', test_end: str = '05/01/2014')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="SolarTask14" class="doc_header"><code>class</code> <code>SolarTask14</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L700" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>SolarTask14</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'05/01/2014'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'06/01/2014'</code></em>)</p>
</blockquote>
<p>SolarTask14(test_start: str = '05/01/2014', test_end: str = '06/01/2014')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="SolarTask15" class="doc_header"><code>class</code> <code>SolarTask15</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L705" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>SolarTask15</code>(<strong><code>test_start</code></strong>:<code>str</code>=<em><code>'06/01/2014'</code></em>, <strong><code>test_end</code></strong>:<code>str</code>=<em><code>'07/01/2014'</code></em>)</p>
</blockquote>
<p>SolarTask15(test_start: str = '06/01/2014', test_end: str = '07/01/2014')</p>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

<div class="output_wrapper">
<div class="output">

<div class="output_area">


<div class="output_markdown rendered_html output_subarea ">
<h2 id="GEFCom2014_S" class="doc_header"><code>class</code> <code>GEFCom2014_S</code><a href="https://github.com/Nixtla/nixtlats/tree/master/nixtlats/data/datasets/gefcom2014.py#L719" class="source_link" style="float:right">[source]</a></h2><blockquote><p><code>GEFCom2014_S</code>()</p>
</blockquote>

</div>

</div>

</div>
</div>

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">

</div>
    {% endraw %}

    {% raw %}
    
<div class="cell border-box-sizing code_cell rendered">
<div class="input">

<div class="inner_cell">
    <div class="input_area">
<div class=" highlight hl-ipython3"><pre><span></span><span class="n">Y_df</span><span class="p">,</span> <span class="n">X_df</span><span class="p">,</span> <span class="n">benchmark_df</span> <span class="o">=</span> <span class="n">GEFCom2014_S</span><span class="o">.</span><span class="n">load</span><span class="p">(</span><span class="n">directory</span><span class="o">=</span><span class="s1">&#39;data&#39;</span><span class="p">,</span> <span class="n">group</span><span class="o">=</span><span class="s1">&#39;Task 15&#39;</span><span class="p">)</span>

<span class="n">Y_df</span> <span class="o">=</span> <span class="n">Y_df</span><span class="p">[</span><span class="n">Y_df</span><span class="o">.</span><span class="n">unique_id</span><span class="o">==</span><span class="mi">2</span><span class="p">]</span>

<span class="n">ds</span> <span class="o">=</span> <span class="n">Y_df</span><span class="o">.</span><span class="n">ds</span><span class="o">.</span><span class="n">values</span>
<span class="n">y_true</span> <span class="o">=</span> <span class="n">Y_df</span><span class="o">.</span><span class="n">y</span><span class="o">.</span><span class="n">values</span>

<span class="n">x_plot</span> <span class="o">=</span> <span class="n">Y_df</span><span class="o">.</span><span class="n">ds</span><span class="o">.</span><span class="n">values</span>
<span class="n">x_plot_min</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">to_datetime</span><span class="p">(</span><span class="n">x_plot</span><span class="o">.</span><span class="n">min</span><span class="p">())</span><span class="o">.</span><span class="n">strftime</span><span class="p">(</span><span class="s1">&#39;%B </span><span class="si">%d</span><span class="s1">, %Y&#39;</span><span class="p">)</span>
<span class="n">x_plot_max</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">to_datetime</span><span class="p">(</span><span class="n">x_plot</span><span class="o">.</span><span class="n">max</span><span class="p">())</span><span class="o">.</span><span class="n">strftime</span><span class="p">(</span><span class="s1">&#39;%B </span><span class="si">%d</span><span class="s1">, %Y&#39;</span><span class="p">)</span>
<span class="n">x_axis_str</span> <span class="o">=</span> <span class="sa">f</span><span class="s1">&#39;Hours [</span><span class="si">{</span><span class="n">x_plot_min</span><span class="si">}</span><span class="s1">  to  </span><span class="si">{</span><span class="n">x_plot_max</span><span class="si">}</span><span class="s1">]&#39;</span>
<span class="n">y_axis_str</span> <span class="o">=</span> <span class="s1">&#39;Power&#39;</span>

<span class="n">fig</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">figure</span><span class="p">(</span><span class="n">figsize</span><span class="o">=</span><span class="p">(</span><span class="mi">15</span><span class="p">,</span> <span class="mi">4</span><span class="p">))</span>
<span class="n">fig</span><span class="o">.</span><span class="n">tight_layout</span><span class="p">()</span>
<span class="n">ax0</span> <span class="o">=</span> <span class="n">plt</span><span class="o">.</span><span class="n">subplot2grid</span><span class="p">((</span><span class="mi">1</span><span class="p">,</span><span class="mi">1</span><span class="p">),(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">))</span>
<span class="n">axs</span> <span class="o">=</span> <span class="p">[</span><span class="n">ax0</span><span class="p">]</span>

<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">plot</span><span class="p">(</span><span class="n">ds</span><span class="p">,</span> <span class="n">y_true</span><span class="p">,</span> <span class="n">color</span><span class="o">=</span><span class="s1">&#39;#628793&#39;</span><span class="p">,</span> <span class="n">linewidth</span><span class="o">=</span><span class="mf">0.4</span><span class="p">,</span> <span class="n">label</span><span class="o">=</span><span class="s1">&#39;true&#39;</span><span class="p">)</span>
<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">tick_params</span><span class="p">(</span><span class="n">labelsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="o">-</span><span class="mi">5</span><span class="p">)</span>
<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">set_xlabel</span><span class="p">(</span><span class="n">x_axis_str</span><span class="p">,</span> <span class="n">fontsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="p">)</span>
<span class="n">axs</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">.</span><span class="n">set_ylabel</span><span class="p">(</span><span class="n">y_axis_str</span><span class="p">,</span> <span class="n">fontsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">title</span><span class="p">(</span><span class="s1">&#39;GEFCom2014-S&#39;</span><span class="p">,</span> <span class="n">fontsize</span><span class="o">=</span><span class="n">FONTSIZE</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">grid</span><span class="p">()</span>
<span class="n">plt</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>
</pre></div>

    </div>
</div>
</div>

<div class="output_wrapper">
<div class="output">

<div class="output_area">



<div class="output_png output_subarea ">
<img src="data:image/png;base64,[encoded data, 124976 characters]
"
>
</div>

</div>

</div>
</div>

</div>
    {% endraw %}

</div>
 

