<spanid="pyfts-common-composite-module"></span><h2>pyFTS.common.Composite module<aclass="headerlink"href="#module-pyFTS.common.Composite"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">pyFTS.common.Composite.</code><codeclass="sig-name descname">FuzzySet</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">name</span></em>, <emclass="sig-param"><spanclass="n">superset</span><spanclass="o">=</span><spanclass="default_value">False</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Composite.html#FuzzySet"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Composite.FuzzySet"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">append</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">mf</span></em>, <emclass="sig-param"><spanclass="n">parameters</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Composite.html#FuzzySet.append"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Composite.FuzzySet.append"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">append_set</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">set</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Composite.html#FuzzySet.append_set"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Composite.FuzzySet.append_set"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">membership</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">x</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Composite.html#FuzzySet.membership"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Composite.FuzzySet.membership"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">transform</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">x</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Composite.html#FuzzySet.transform"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Composite.FuzzySet.transform"title="Permalink to this definition">¶</a></dt>
<spanid="pyfts-common-flr-module"></span><h2>pyFTS.common.FLR module<aclass="headerlink"href="#module-pyFTS.common.FLR"title="Permalink to this headline">¶</a></h2>
<p>This module implements functions for Fuzzy Logical Relationship generation</p>
<emclass="property">class </em><codeclass="sig-prename descclassname">pyFTS.common.FLR.</code><codeclass="sig-name descname">FLR</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">LHS</span></em>, <emclass="sig-param"><spanclass="n">RHS</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FLR.html#FLR"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FLR.FLR"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">pyFTS.common.FLR.</code><codeclass="sig-name descname">IndexedFLR</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">index</span></em>, <emclass="sig-param"><spanclass="n">LHS</span></em>, <emclass="sig-param"><spanclass="n">RHS</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FLR.html#IndexedFLR"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FLR.IndexedFLR"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">index</code><aclass="headerlink"href="#pyFTS.common.FLR.IndexedFLR.index"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.FLR.</code><codeclass="sig-name descname">generate_high_order_recurrent_flr</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">fuzzyData</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FLR.html#generate_high_order_recurrent_flr"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FLR.generate_high_order_recurrent_flr"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.FLR.</code><codeclass="sig-name descname">generate_non_recurrent_flrs</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">fuzzyData</span></em>, <emclass="sig-param"><spanclass="n">steps</span><spanclass="o">=</span><spanclass="default_value">1</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FLR.html#generate_non_recurrent_flrs"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FLR.generate_non_recurrent_flrs"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.FLR.</code><codeclass="sig-name descname">generate_recurrent_flrs</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">fuzzyData</span></em>, <emclass="sig-param"><spanclass="n">steps</span><spanclass="o">=</span><spanclass="default_value">1</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FLR.html#generate_recurrent_flrs"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FLR.generate_recurrent_flrs"title="Permalink to this definition">¶</a></dt>
<spanid="pyfts-common-fuzzyset-module"></span><h2>pyFTS.common.FuzzySet module<aclass="headerlink"href="#module-pyFTS.common.FuzzySet"title="Permalink to this headline">¶</a></h2>
<codeclass="sig-name descname">Z</code><aclass="headerlink"href="#pyFTS.common.FuzzySet.FuzzySet.Z"title="Permalink to this definition">¶</a></dt>
<dd><p>Partition function in respect to the membership function</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.FuzzySet.FuzzySet.alpha">
<codeclass="sig-name descname">alpha</code><aclass="headerlink"href="#pyFTS.common.FuzzySet.FuzzySet.alpha"title="Permalink to this definition">¶</a></dt>
<dd><p>The alpha cut value</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.FuzzySet.FuzzySet.centroid">
<codeclass="sig-name descname">centroid</code><aclass="headerlink"href="#pyFTS.common.FuzzySet.FuzzySet.centroid"title="Permalink to this definition">¶</a></dt>
<dd><p>The fuzzy set center of mass (or midpoint)</p>
<codeclass="sig-name descname">membership</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">x</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FuzzySet.html#FuzzySet.membership"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FuzzySet.FuzzySet.membership"title="Permalink to this definition">¶</a></dt>
<ddclass="field-even"><p>membership value of x at this fuzzy set</p>
</dd>
</dl>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.FuzzySet.FuzzySet.mf">
<codeclass="sig-name descname">mf</code><aclass="headerlink"href="#pyFTS.common.FuzzySet.FuzzySet.mf"title="Permalink to this definition">¶</a></dt>
<dd><p>The membership function</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.FuzzySet.FuzzySet.name">
<codeclass="sig-name descname">name</code><aclass="headerlink"href="#pyFTS.common.FuzzySet.FuzzySet.name"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">parameters</code><aclass="headerlink"href="#pyFTS.common.FuzzySet.FuzzySet.parameters"title="Permalink to this definition">¶</a></dt>
<dd><p>The parameters of the membership function</p>
<codeclass="sig-name descname">partition_function</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">uod</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">nbins</span><spanclass="o">=</span><spanclass="default_value">100</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FuzzySet.html#FuzzySet.partition_function"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FuzzySet.FuzzySet.partition_function"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">transform</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">x</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FuzzySet.html#FuzzySet.transform"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FuzzySet.FuzzySet.transform"title="Permalink to this definition">¶</a></dt>
<ddclass="field-even"><p>return a native type value for the structured type</p>
</dd>
</dl>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.FuzzySet.FuzzySet.type">
<codeclass="sig-name descname">type</code><aclass="headerlink"href="#pyFTS.common.FuzzySet.FuzzySet.type"title="Permalink to this definition">¶</a></dt>
<dd><p>The fuzzy set type (common, composite, nonstationary, etc)</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.FuzzySet.FuzzySet.variable">
<codeclass="sig-name descname">variable</code><aclass="headerlink"href="#pyFTS.common.FuzzySet.FuzzySet.variable"title="Permalink to this definition">¶</a></dt>
<dd><p>In multivariate time series, indicate for which variable this fuzzy set belogs</p>
<codeclass="sig-prename descclassname">pyFTS.common.FuzzySet.</code><codeclass="sig-name descname">check_bounds</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="n">fuzzy_sets</span></em>, <emclass="sig-param"><spanclass="n">ordered_sets</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FuzzySet.html#check_bounds"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FuzzySet.check_bounds"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.FuzzySet.</code><codeclass="sig-name descname">check_bounds_index</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="n">fuzzy_sets</span></em>, <emclass="sig-param"><spanclass="n">ordered_sets</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FuzzySet.html#check_bounds_index"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FuzzySet.check_bounds_index"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.FuzzySet.</code><codeclass="sig-name descname">fuzzyfy</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="n">partitioner</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FuzzySet.html#fuzzyfy"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FuzzySet.fuzzyfy"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.FuzzySet.</code><codeclass="sig-name descname">fuzzyfy_instance</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">inst</span></em>, <emclass="sig-param"><spanclass="n">fuzzy_sets</span></em>, <emclass="sig-param"><spanclass="n">ordered_sets</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FuzzySet.html#fuzzyfy_instance"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FuzzySet.fuzzyfy_instance"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.FuzzySet.</code><codeclass="sig-name descname">fuzzyfy_instances</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="n">fuzzy_sets</span></em>, <emclass="sig-param"><spanclass="n">ordered_sets</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FuzzySet.html#fuzzyfy_instances"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FuzzySet.fuzzyfy_instances"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.FuzzySet.</code><codeclass="sig-name descname">fuzzyfy_series_old</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="n">fuzzy_sets</span></em>, <emclass="sig-param"><spanclass="n">method</span><spanclass="o">=</span><spanclass="default_value">'maximum'</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FuzzySet.html#fuzzyfy_series_old"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FuzzySet.fuzzyfy_series_old"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.FuzzySet.</code><codeclass="sig-name descname">get_fuzzysets</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">inst</span></em>, <emclass="sig-param"><spanclass="n">fuzzy_sets</span></em>, <emclass="sig-param"><spanclass="n">ordered_sets</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">alpha_cut</span><spanclass="o">=</span><spanclass="default_value">0.0</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FuzzySet.html#get_fuzzysets"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FuzzySet.get_fuzzysets"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.FuzzySet.</code><codeclass="sig-name descname">get_maximum_membership_fuzzyset</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">inst</span></em>, <emclass="sig-param"><spanclass="n">fuzzy_sets</span></em>, <emclass="sig-param"><spanclass="n">ordered_sets</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FuzzySet.html#get_maximum_membership_fuzzyset"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FuzzySet.get_maximum_membership_fuzzyset"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.FuzzySet.</code><codeclass="sig-name descname">get_maximum_membership_fuzzyset_index</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">inst</span></em>, <emclass="sig-param"><spanclass="n">fuzzy_sets</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FuzzySet.html#get_maximum_membership_fuzzyset_index"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FuzzySet.get_maximum_membership_fuzzyset_index"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.FuzzySet.</code><codeclass="sig-name descname">grant_bounds</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="n">fuzzy_sets</span></em>, <emclass="sig-param"><spanclass="n">ordered_sets</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FuzzySet.html#grant_bounds"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FuzzySet.grant_bounds"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.FuzzySet.</code><codeclass="sig-name descname">set_ordered</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">fuzzy_sets</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/FuzzySet.html#set_ordered"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.FuzzySet.set_ordered"title="Permalink to this definition">¶</a></dt>
<spanid="pyfts-common-membership-module"></span><h2>pyFTS.common.Membership module<aclass="headerlink"href="#module-pyFTS.common.Membership"title="Permalink to this headline">¶</a></h2>
<codeclass="sig-prename descclassname">pyFTS.common.Membership.</code><codeclass="sig-name descname">bellmf</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">x</span></em>, <emclass="sig-param"><spanclass="n">parameters</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Membership.html#bellmf"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Membership.bellmf"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.Membership.</code><codeclass="sig-name descname">gaussmf</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">x</span></em>, <emclass="sig-param"><spanclass="n">parameters</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Membership.html#gaussmf"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Membership.gaussmf"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.Membership.</code><codeclass="sig-name descname">sigmf</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">x</span></em>, <emclass="sig-param"><spanclass="n">parameters</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Membership.html#sigmf"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Membership.sigmf"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.Membership.</code><codeclass="sig-name descname">singleton</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">x</span></em>, <emclass="sig-param"><spanclass="n">parameters</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Membership.html#singleton"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Membership.singleton"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.Membership.</code><codeclass="sig-name descname">trapmf</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">x</span></em>, <emclass="sig-param"><spanclass="n">parameters</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Membership.html#trapmf"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Membership.trapmf"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.Membership.</code><codeclass="sig-name descname">trimf</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">x</span></em>, <emclass="sig-param"><spanclass="n">parameters</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Membership.html#trimf"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Membership.trimf"title="Permalink to this definition">¶</a></dt>
<spanid="pyfts-common-sortedcollection-module"></span><h2>pyFTS.common.SortedCollection module<aclass="headerlink"href="#module-pyFTS.common.SortedCollection"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">pyFTS.common.SortedCollection.</code><codeclass="sig-name descname">SortedCollection</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">iterable</span><spanclass="o">=</span><spanclass="default_value">()</span></em>, <emclass="sig-param"><spanclass="n">key</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/SortedCollection.html#SortedCollection"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection"title="Permalink to this definition">¶</a></dt>
<divclass="doctest highlight-default notranslate"><divclass="highlight"><pre><span></span><spanclass="gp">>>></span><spanclass="n">pprint</span><spanclass="p">(</span><spanclass="nb">list</span><spanclass="p">(</span><spanclass="n">s</span><spanclass="p">))</span><spanclass="c1"># show records sorted by age</span>
<divclass="doctest highlight-default notranslate"><divclass="highlight"><pre><span></span><spanclass="gp">>>></span><spanclass="n">s</span><spanclass="o">.</span><spanclass="n">find_le</span><spanclass="p">(</span><spanclass="mi">29</span><spanclass="p">)</span><spanclass="c1"># find oldest person aged 29 or younger</span>
<spanclass="gp">>>></span><spanclass="n">s</span><spanclass="o">.</span><spanclass="n">find_lt</span><spanclass="p">(</span><spanclass="mi">28</span><spanclass="p">)</span><spanclass="c1"># find oldest person under 28</span>
<spanclass="gp">>>></span><spanclass="n">s</span><spanclass="o">.</span><spanclass="n">find_gt</span><spanclass="p">(</span><spanclass="mi">28</span><spanclass="p">)</span><spanclass="c1"># find youngest person over 28</span>
<divclass="doctest highlight-default notranslate"><divclass="highlight"><pre><span></span><spanclass="gp">>>></span><spanclass="n">r</span><spanclass="o">=</span><spanclass="n">s</span><spanclass="o">.</span><spanclass="n">find_ge</span><spanclass="p">(</span><spanclass="mi">32</span><spanclass="p">)</span><spanclass="c1"># find youngest person aged 32 or older</span>
<spanclass="gp">>>></span><spanclass="n">s</span><spanclass="o">.</span><spanclass="n">index</span><spanclass="p">(</span><spanclass="n">r</span><spanclass="p">)</span><spanclass="c1"># get the index of their record</span>
<spanclass="go">3</span>
<spanclass="gp">>>></span><spanclass="n">s</span><spanclass="p">[</span><spanclass="mi">3</span><spanclass="p">]</span><spanclass="c1"># fetch the record at that index</span>
<divclass="doctest highlight-default notranslate"><divclass="highlight"><pre><span></span><spanclass="gp">>>></span><spanclass="n">s</span><spanclass="o">.</span><spanclass="n">key</span><spanclass="o">=</span><spanclass="n">itemgetter</span><spanclass="p">(</span><spanclass="mi">0</span><spanclass="p">)</span><spanclass="c1"># now sort by first name</span>
<codeclass="sig-name descname">around</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">k</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/SortedCollection.html#SortedCollection.around"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.around"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">between</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">ge</span></em>, <emclass="sig-param"><spanclass="n">le</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/SortedCollection.html#SortedCollection.between"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.between"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">clear</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/SortedCollection.html#SortedCollection.clear"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.clear"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">copy</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/SortedCollection.html#SortedCollection.copy"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.copy"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">count</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">item</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/SortedCollection.html#SortedCollection.count"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.count"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">find</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">k</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/SortedCollection.html#SortedCollection.find"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.find"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">find_ge</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">k</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/SortedCollection.html#SortedCollection.find_ge"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.find_ge"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">find_gt</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">k</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/SortedCollection.html#SortedCollection.find_gt"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.find_gt"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">find_le</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">k</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/SortedCollection.html#SortedCollection.find_le"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.find_le"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">find_lt</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">k</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/SortedCollection.html#SortedCollection.find_lt"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.find_lt"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">index</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">item</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/SortedCollection.html#SortedCollection.index"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.index"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">insert</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">item</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/SortedCollection.html#SortedCollection.insert"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.insert"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">insert_right</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">item</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/SortedCollection.html#SortedCollection.insert_right"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.insert_right"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">inside</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">ge</span></em>, <emclass="sig-param"><spanclass="n">le</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/SortedCollection.html#SortedCollection.inside"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.inside"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">key</code><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.key"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">remove</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">item</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/SortedCollection.html#SortedCollection.remove"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.remove"title="Permalink to this definition">¶</a></dt>
<spanid="pyfts-common-util-module"></span><h2>pyFTS.common.Util module<aclass="headerlink"href="#module-pyFTS.common.Util"title="Permalink to this headline">¶</a></h2>
<p>Common facilities for pyFTS</p>
<dlclass="py function">
<dtid="pyFTS.common.Util.current_milli_time">
<codeclass="sig-prename descclassname">pyFTS.common.Util.</code><codeclass="sig-name descname">current_milli_time</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Util.current_milli_time"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="py function">
<dtid="pyFTS.common.Util.draw_sets_on_axis">
<codeclass="sig-prename descclassname">pyFTS.common.Util.</code><codeclass="sig-name descname">draw_sets_on_axis</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">axis</span></em>, <emclass="sig-param"><spanclass="n">model</span></em>, <emclass="sig-param"><spanclass="n">size</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Util.html#draw_sets_on_axis"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Util.draw_sets_on_axis"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="py function">
<dtid="pyFTS.common.Util.enumerate2">
<codeclass="sig-prename descclassname">pyFTS.common.Util.</code><codeclass="sig-name descname">enumerate2</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">xs</span></em>, <emclass="sig-param"><spanclass="n">start</span><spanclass="o">=</span><spanclass="default_value">0</span></em>, <emclass="sig-param"><spanclass="n">step</span><spanclass="o">=</span><spanclass="default_value">1</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Util.html#enumerate2"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Util.enumerate2"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="py function">
<dtid="pyFTS.common.Util.load_env">
<codeclass="sig-prename descclassname">pyFTS.common.Util.</code><codeclass="sig-name descname">load_env</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">file</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Util.html#load_env"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Util.load_env"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="py function">
<dtid="pyFTS.common.Util.load_obj">
<codeclass="sig-prename descclassname">pyFTS.common.Util.</code><codeclass="sig-name descname">load_obj</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">file</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Util.html#load_obj"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Util.load_obj"title="Permalink to this definition">¶</a></dt>
<dd><p>Load to memory an object stored filesystem. This function depends on Dill package</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>file</strong>– file name where the object is stored</p>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>object</p>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="pyFTS.common.Util.persist_env">
<codeclass="sig-prename descclassname">pyFTS.common.Util.</code><codeclass="sig-name descname">persist_env</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">file</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Util.html#persist_env"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Util.persist_env"title="Permalink to this definition">¶</a></dt>
<dd><p>Persist an entire environment on file. This function depends on Dill package</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>file</strong>– file name to store the environment</p>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="pyFTS.common.Util.persist_obj">
<codeclass="sig-prename descclassname">pyFTS.common.Util.</code><codeclass="sig-name descname">persist_obj</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">obj</span></em>, <emclass="sig-param"><spanclass="n">file</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Util.html#persist_obj"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Util.persist_obj"title="Permalink to this definition">¶</a></dt>
<dd><p>Persist an object on filesystem. This function depends on Dill package</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>obj</strong>– object on memory</p></li>
<li><p><strong>file</strong>– file name to store the object</p></li>
<li><p><strong>time_from</strong>– starting time (on x axis) to begin the plots</p></li>
<li><p><strong>reference_data</strong>–</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p></p>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="pyFTS.common.Util.plot_distribution2">
<codeclass="sig-prename descclassname">pyFTS.common.Util.</code><codeclass="sig-name descname">plot_distribution2</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">probabilitydist</span></em>, <emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Util.html#plot_distribution2"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Util.plot_distribution2"title="Permalink to this definition">¶</a></dt>
<dd><p>Plot distributions in y-axis over the time (x-axis)</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>probabilitydist</strong>– the forecasted probability distributions to plot</p></li>
<li><p><strong>data</strong>– the original test sample</p></li>
<li><p><strong>start_at</strong>– the time index (inside of data) to start to plot the probability distributions</p></li>
<li><p><strong>ax</strong>– a matplotlib axis. If no value was provided a new axis is created.</p></li>
<li><p><strong>cmap</strong>– a matplotlib colormap name, the default value is ‘Blues’</p></li>
<li><p><strong>quantiles</strong>– the list of quantiles intervals to plot, e. g. [.05, .25, .75, .95]</p></li>
<li><p><strong>median</strong>– a boolean value indicating if the median value will be plot.</p></li>
<codeclass="sig-prename descclassname">pyFTS.common.Util.</code><codeclass="sig-name descname">plot_interval2</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">intervals</span></em>, <emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Util.html#plot_interval2"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Util.plot_interval2"title="Permalink to this definition">¶</a></dt>
<dd><p>Plot forecasted intervals on matplotlib</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>intervals</strong>– list of forecasted intervals</p></li>
<li><p><strong>data</strong>– the original test sample</p></li>
<li><p><strong>start_at</strong>– the time index (inside of data) to start to plot the intervals</p></li>
<codeclass="sig-prename descclassname">pyFTS.common.Util.</code><codeclass="sig-name descname">plot_probability_distributions</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">pmfs</span></em>, <emclass="sig-param"><spanclass="n">lcolors</span></em>, <emclass="sig-param"><spanclass="n">tam</span><spanclass="o">=</span><spanclass="default_value">[15, 7]</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Util.html#plot_probability_distributions"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Util.plot_probability_distributions"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="py function">
<dtid="pyFTS.common.Util.plot_rules">
<codeclass="sig-prename descclassname">pyFTS.common.Util.</code><codeclass="sig-name descname">plot_rules</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">model</span></em>, <emclass="sig-param"><spanclass="n">size</span><spanclass="o">=</span><spanclass="default_value">[5, 5]</span></em>, <emclass="sig-param"><spanclass="n">axis</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">rules_by_axis</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">columns</span><spanclass="o">=</span><spanclass="default_value">1</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Util.html#plot_rules"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Util.plot_rules"title="Permalink to this definition">¶</a></dt>
<dd><p>Plot the FLRG rules of a FTS model on a matplotlib axis</p>
<li><p><strong>rules_by_axis</strong>– number of rules plotted by column</p></li>
<li><p><strong>columns</strong>– number of columns</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p></p>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="pyFTS.common.Util.show_and_save_image">
<codeclass="sig-prename descclassname">pyFTS.common.Util.</code><codeclass="sig-name descname">show_and_save_image</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">fig</span></em>, <emclass="sig-param"><spanclass="n">file</span></em>, <emclass="sig-param"><spanclass="n">flag</span></em>, <emclass="sig-param"><spanclass="n">lgd</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Util.html#show_and_save_image"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Util.show_and_save_image"title="Permalink to this definition">¶</a></dt>
<li><p><strong>train</strong>– percentual of the window size will be used for training the models</p></li>
<li><p><strong>inc</strong>– percentual of data used for slide the window</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>window count, training set, test set</p>
</dd>
</dl>
</dd></dl>
<dlclass="py function">
<dtid="pyFTS.common.Util.uniquefilename">
<codeclass="sig-prename descclassname">pyFTS.common.Util.</code><codeclass="sig-name descname">uniquefilename</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">name</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/Util.html#uniquefilename"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.Util.uniquefilename"title="Permalink to this definition">¶</a></dt>
<spanid="pyfts-common-flrg-module"></span><h2>pyFTS.common.flrg module<aclass="headerlink"href="#module-pyFTS.common.flrg"title="Permalink to this headline">¶</a></h2>
<dlclass="py class">
<dtid="pyFTS.common.flrg.FLRG">
<emclass="property">class </em><codeclass="sig-prename descclassname">pyFTS.common.flrg.</code><codeclass="sig-name descname">FLRG</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">order</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/flrg.html#FLRG"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.flrg.FLRG"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">append_rhs</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">set</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/flrg.html#FLRG.append_rhs"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.flrg.FLRG.append_rhs"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_key</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/flrg.html#FLRG.get_key"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.flrg.FLRG.get_key"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns a unique identifier for this FLRG</p>
<codeclass="sig-name descname">get_lower</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">sets</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/flrg.html#FLRG.get_lower"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.flrg.FLRG.get_lower"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the lower bound value for the RHS fuzzy sets</p>
<codeclass="sig-name descname">get_membership</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="n">sets</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/flrg.html#FLRG.get_membership"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.flrg.FLRG.get_membership"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the membership value of the FLRG for the input data</p>
<codeclass="sig-name descname">get_midpoint</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">sets</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/flrg.html#FLRG.get_midpoint"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.flrg.FLRG.get_midpoint"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the midpoint value for the RHS fuzzy sets</p>
<codeclass="sig-name descname">get_midpoints</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">sets</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/flrg.html#FLRG.get_midpoints"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.flrg.FLRG.get_midpoints"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_upper</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">sets</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/flrg.html#FLRG.get_upper"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.flrg.FLRG.get_upper"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the upper bound value for the RHS fuzzy sets</p>
<codeclass="sig-name descname">reset_calculated_values</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/flrg.html#FLRG.reset_calculated_values"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.flrg.FLRG.reset_calculated_values"title="Permalink to this definition">¶</a></dt>
<spanid="pyfts-common-fts-module"></span><h2>pyFTS.common.fts module<aclass="headerlink"href="#module-pyFTS.common.fts"title="Permalink to this headline">¶</a></h2>
<dlclass="py class">
<dtid="pyFTS.common.fts.FTS">
<emclass="property">class </em><codeclass="sig-prename descclassname">pyFTS.common.fts.</code><codeclass="sig-name descname">FTS</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">alpha_cut</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.alpha_cut"title="Permalink to this definition">¶</a></dt>
<dd><p>A float with the minimal membership to be considered on fuzzyfication process</p>
</dd></dl>
<dlclass="py method">
<dtid="pyFTS.common.fts.FTS.append_log">
<codeclass="sig-name descname">append_log</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">operation</span></em>, <emclass="sig-param"><spanclass="n">value</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.append_log"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.append_log"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="py method">
<dtid="pyFTS.common.fts.FTS.append_rule">
<codeclass="sig-name descname">append_rule</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">flrg</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.append_rule"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.append_rule"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">append_transformation</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">transformation</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.append_transformation"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.append_transformation"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">apply_inverse_transformations</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="n">params</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.apply_inverse_transformations"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.apply_inverse_transformations"title="Permalink to this definition">¶</a></dt>
<dd><p>Apply the data transformations for data postprocessing</p>
<codeclass="sig-name descname">apply_transformations</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="n">params</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">updateUoD</span><spanclass="o">=</span><spanclass="default_value">False</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.apply_transformations"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.apply_transformations"title="Permalink to this definition">¶</a></dt>
<dd><p>Apply the data transformations for data preprocessing</p>
<codeclass="sig-name descname">auto_update</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.auto_update"title="Permalink to this definition">¶</a></dt>
<dd><p>A boolean value indicating that model is incremental</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.benchmark_only">
<codeclass="sig-name descname">benchmark_only</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.benchmark_only"title="Permalink to this definition">¶</a></dt>
<dd><p>A boolean value indicating a façade for external (non-FTS) model used on benchmarks or ensembles.</p>
</dd></dl>
<dlclass="py method">
<dtid="pyFTS.common.fts.FTS.clip_uod">
<codeclass="sig-name descname">clip_uod</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">ndata</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.clip_uod"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.clip_uod"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="py method">
<dtid="pyFTS.common.fts.FTS.clone_parameters">
<codeclass="sig-name descname">clone_parameters</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">model</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.clone_parameters"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.clone_parameters"title="Permalink to this definition">¶</a></dt>
<dd><p>Import the parameters values from other model</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>model</strong>– a model to clone the parameters</p>
</dd>
</dl>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.detail">
<codeclass="sig-name descname">detail</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.detail"title="Permalink to this definition">¶</a></dt>
<dd><p>A string with the model detailed information</p>
</dd></dl>
<dlclass="py method">
<dtid="pyFTS.common.fts.FTS.fit">
<codeclass="sig-name descname">fit</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">ndata</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.fit"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.fit"title="Permalink to this definition">¶</a></dt>
<dd><p>Fit the model’s parameters based on the training data.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>ndata</strong>– training time series data</p></li>
<li><p><strong>kwargs</strong>–</p></li>
<li><p><strong>num_batches</strong>– split the training data in num_batches to save memory during the training process</p></li>
<li><p><strong>save_model</strong>– save final model on disk</p></li>
<li><p><strong>batch_save</strong>– save the model between each batch</p></li>
<li><p><strong>file_path</strong>– path to save the model</p></li>
<li><p><strong>distributed</strong>– boolean, indicate if the training procedure will be distributed in a dispy cluster</p></li>
<li><p><strong>nodes</strong>– a list with the dispy cluster nodes addresses</p></li>
</ul>
</dd>
</dl>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.flrgs">
<codeclass="sig-name descname">flrgs</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.flrgs"title="Permalink to this definition">¶</a></dt>
<dd><p>The list of Fuzzy Logical Relationship Groups - FLRG</p>
</dd></dl>
<dlclass="py method">
<dtid="pyFTS.common.fts.FTS.forecast">
<codeclass="sig-name descname">forecast</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.forecast"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast"title="Permalink to this definition">¶</a></dt>
<dd><p>Point forecast one step ahead</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>data</strong>– time series data with the minimal length equal to the max_lag of the model</p></li>
<li><p><strong>kwargs</strong>– model specific parameters</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>a list with the forecasted values</p>
</dd>
</dl>
</dd></dl>
<dlclass="py method">
<dtid="pyFTS.common.fts.FTS.forecast_ahead">
<codeclass="sig-name descname">forecast_ahead</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="n">steps</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.forecast_ahead"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast_ahead"title="Permalink to this definition">¶</a></dt>
<dd><p>Point forecast from 1 to H steps ahead, where H is given by the steps parameter</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>data</strong>– time series data with the minimal length equal to the max_lag of the model</p></li>
<li><p><strong>steps</strong>– the number of steps ahead to forecast (default: 1)</p></li>
<li><p><strong>start_at</strong>– in the multi step forecasting, the index of the data where to start forecasting (default: 0)</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>a list with the forecasted values</p>
<codeclass="sig-name descname">forecast_ahead_distribution</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="n">steps</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.forecast_ahead_distribution"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast_ahead_distribution"title="Permalink to this definition">¶</a></dt>
<dd><p>Probabilistic forecast from 1 to H steps ahead, where H is given by the steps parameter</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>data</strong>– time series data with the minimal length equal to the max_lag of the model</p></li>
<li><p><strong>steps</strong>– the number of steps ahead to forecast</p></li>
<li><p><strong>start_at</strong>– in the multi step forecasting, the index of the data where to start forecasting (default: 0)</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>a list with the forecasted Probability Distributions</p>
<codeclass="sig-name descname">forecast_ahead_interval</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="n">steps</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.forecast_ahead_interval"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast_ahead_interval"title="Permalink to this definition">¶</a></dt>
<dd><p>Interval forecast from 1 to H steps ahead, where H is given by the steps parameter</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>data</strong>– time series data with the minimal length equal to the max_lag of the model</p></li>
<li><p><strong>steps</strong>– the number of steps ahead to forecast</p></li>
<li><p><strong>start_at</strong>– in the multi step forecasting, the index of the data where to start forecasting (default: 0)</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>a list with the forecasted intervals</p>
<codeclass="sig-name descname">forecast_ahead_multivariate</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="n">steps</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.forecast_ahead_multivariate"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast_ahead_multivariate"title="Permalink to this definition">¶</a></dt>
<dd><p>Multivariate forecast n step ahead</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>data</strong>– Pandas dataframe with one column for each variable and with the minimal length equal to the max_lag of the model</p></li>
<li><p><strong>steps</strong>– the number of steps ahead to forecast</p></li>
<li><p><strong>start_at</strong>– in the multi step forecasting, the index of the data where to start forecasting (default: 0)</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>a Pandas Dataframe object representing the forecasted values for each variable</p>
<codeclass="sig-name descname">forecast_distribution</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.forecast_distribution"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast_distribution"title="Permalink to this definition">¶</a></dt>
<dd><p>Probabilistic forecast one step ahead</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>data</strong>– time series data with the minimal length equal to the max_lag of the model</p></li>
<li><p><strong>kwargs</strong>– model specific parameters</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>a list with probabilistic.ProbabilityDistribution objects representing the forecasted Probability Distributions</p>
</dd>
</dl>
</dd></dl>
<dlclass="py method">
<dtid="pyFTS.common.fts.FTS.forecast_interval">
<codeclass="sig-name descname">forecast_interval</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.forecast_interval"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast_interval"title="Permalink to this definition">¶</a></dt>
<dd><p>Interval forecast one step ahead</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>data</strong>– time series data with the minimal length equal to the max_lag of the model</p></li>
<li><p><strong>kwargs</strong>– model specific parameters</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>a list with the prediction intervals</p>
<codeclass="sig-name descname">forecast_multivariate</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.forecast_multivariate"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast_multivariate"title="Permalink to this definition">¶</a></dt>
<dd><p>Multivariate forecast one step ahead</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>data</strong>– Pandas dataframe with one column for each variable and with the minimal length equal to the max_lag of the model</p></li>
<li><p><strong>kwargs</strong>– model specific parameters</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>a Pandas Dataframe object representing the forecasted values for each variable</p>
</dd>
</dl>
</dd></dl>
<dlclass="py method">
<dtid="pyFTS.common.fts.FTS.forecast_step">
<codeclass="sig-name descname">forecast_step</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="n">step</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.forecast_step"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast_step"title="Permalink to this definition">¶</a></dt>
<dd><p>Point forecast for H steps ahead, where H is given by the step parameter</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>data</strong>– time series data with the minimal length equal to the max_lag of the model</p></li>
<li><p><strong>step</strong>– the forecasting horizon (default: 1)</p></li>
<li><p><strong>start_at</strong>– in the multi step forecasting, the index of the data where to start forecasting (default: 0)</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>a list with the forecasted values</p>
</dd>
</dl>
</dd></dl>
<dlclass="py method">
<dtid="pyFTS.common.fts.FTS.fuzzy">
<codeclass="sig-name descname">fuzzy</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.fuzzy"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.fuzzy"title="Permalink to this definition">¶</a></dt>
<dd><p>Fuzzify a data point</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>data</strong>– data point</p>
<codeclass="sig-name descname">get_UoD</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.get_UoD"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.get_UoD"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the interval of the known bounds of the universe of discourse (UoD), i. e.,
the known minimum and maximum values of the time series.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
<ddclass="field-odd"><p>A set with the lower and the upper bounds of the UoD</p>
<codeclass="sig-name descname">has_interval_forecasting</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.has_interval_forecasting"title="Permalink to this definition">¶</a></dt>
<dd><p>A boolean value indicating if the model supports interval forecasting, default: False</p>
<codeclass="sig-name descname">has_point_forecasting</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.has_point_forecasting"title="Permalink to this definition">¶</a></dt>
<dd><p>A boolean value indicating if the model supports point forecasting, default: True</p>
<codeclass="sig-name descname">has_probability_forecasting</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.has_probability_forecasting"title="Permalink to this definition">¶</a></dt>
<dd><p>A boolean value indicating if the model support probabilistic forecasting, default: False</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.has_seasonality">
<codeclass="sig-name descname">has_seasonality</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.has_seasonality"title="Permalink to this definition">¶</a></dt>
<dd><p>A boolean value indicating if the model supports seasonal indexers, default: False</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.indexer">
<codeclass="sig-name descname">indexer</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.indexer"title="Permalink to this definition">¶</a></dt>
<dd><p>An pyFTS.models.seasonal.Indexer object for indexing the time series data</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.is_clustered">
<codeclass="sig-name descname">is_clustered</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.is_clustered"title="Permalink to this definition">¶</a></dt>
<dd><p>A boolean value indicating if the model support multivariate time series (Pandas DataFrame), but works like
a monovariate method, default: False</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.is_high_order">
<codeclass="sig-name descname">is_high_order</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.is_high_order"title="Permalink to this definition">¶</a></dt>
<dd><p>A boolean value indicating if the model support orders greater than 1, default: False</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.is_multivariate">
<codeclass="sig-name descname">is_multivariate</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.is_multivariate"title="Permalink to this definition">¶</a></dt>
<dd><p>A boolean value indicating if the model support multivariate time series (Pandas DataFrame), default: False</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.is_time_variant">
<codeclass="sig-name descname">is_time_variant</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.is_time_variant"title="Permalink to this definition">¶</a></dt>
<dd><p>A boolean value indicating if this model is time variant</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.is_wrapper">
<codeclass="sig-name descname">is_wrapper</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.is_wrapper"title="Permalink to this definition">¶</a></dt>
<dd><p>Indicates that this model is a wrapper for other(s) method(s)</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.lags">
<codeclass="sig-name descname">lags</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.lags"title="Permalink to this definition">¶</a></dt>
<dd><p>The list of lag indexes for high order models</p>
</dd></dl>
<dlclass="py method">
<dtid="pyFTS.common.fts.FTS.len_total">
<codeclass="sig-name descname">len_total</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.len_total"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.len_total"title="Permalink to this definition">¶</a></dt>
<dd><p>Total length of the model, adding the number of terms in all rules</p>
<dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
<ddclass="field-odd"><p></p>
</dd>
</dl>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.log">
<codeclass="sig-name descname">log</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.log"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.max_lag">
<codeclass="sig-name descname">max_lag</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.max_lag"title="Permalink to this definition">¶</a></dt>
<dd><p>A integer indicating the largest lag used by the model. This value also indicates the minimum number of past lags
needed to forecast a single step ahead</p>
</dd></dl>
<dlclass="py method">
<dtid="pyFTS.common.fts.FTS.merge">
<codeclass="sig-name descname">merge</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">model</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.merge"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.merge"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">min_order</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.min_order"title="Permalink to this definition">¶</a></dt>
<dd><p>In high order models, this integer value indicates the minimal order supported for the model, default: 1</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.name">
<codeclass="sig-name descname">name</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.name"title="Permalink to this definition">¶</a></dt>
<dd><p>A string with the model name</p>
</dd></dl>
<dlclass="py method">
<dtid="pyFTS.common.fts.FTS.offset">
<codeclass="sig-name descname">offset</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.offset"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.offset"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the number of lags to skip in the input test data in order to synchronize it with
the forecasted values given by the predict function. This is necessary due to the order of the
model, among other parameters.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
<ddclass="field-odd"><p>An integer with the number of lags to skip</p>
</dd>
</dl>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.order">
<codeclass="sig-name descname">order</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.order"title="Permalink to this definition">¶</a></dt>
<dd><p>A integer with the model order (number of past lags are used on forecasting)</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.original_max">
<codeclass="sig-name descname">original_max</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.original_max"title="Permalink to this definition">¶</a></dt>
<dd><p>A float with the upper limit of the Universe of Discourse, the maximal value found on training data</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.original_min">
<codeclass="sig-name descname">original_min</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.original_min"title="Permalink to this definition">¶</a></dt>
<dd><p>A float with the lower limit of the Universe of Discourse, the minimal value found on training data</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.partitioner">
<codeclass="sig-name descname">partitioner</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.partitioner"title="Permalink to this definition">¶</a></dt>
<dd><p>A pyFTS.partitioners.Partitioner object with the Universe of Discourse partitioner used on the model. This is a mandatory dependecy.</p>
</dd></dl>
<dlclass="py method">
<dtid="pyFTS.common.fts.FTS.predict">
<codeclass="sig-name descname">predict</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.predict"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.predict"title="Permalink to this definition">¶</a></dt>
<dd><p>Forecast using trained model</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>data</strong>– time series with minimal length to the order of the model</p></li>
<li><p><strong>type</strong>– the forecasting type, one of these values: point(default), interval, distribution or multivariate.</p></li>
<li><p><strong>steps_ahead</strong>– The forecasting path H, i. e., tell the model to forecast from t+1 to t+H.</p></li>
<li><p><strong>step_to</strong>– The forecasting step H, i. e., tell the model to forecast to t+H for each input sample</p></li>
<li><p><strong>start_at</strong>– in the multi step forecasting, the index of the data where to start forecasting (default value: 0)</p></li>
<li><p><strong>distributed</strong>– boolean, indicate if the forecasting procedure will be distributed in a dispy cluster (default value: False)</p></li>
<li><p><strong>nodes</strong>– a list with the dispy cluster nodes addresses</p></li>
<li><p><strong>explain</strong>– try to explain, step by step, the one-step-ahead point forecasting result given the input data. (default value: False)</p></li>
<li><p><strong>generators</strong>– for multivariate methods on multi step ahead forecasting, generators is a dict where the keys
are the dataframe columun names (except the target_variable) and the values are lambda functions that
accept one value (the actual value of the variable) and return the next value or trained FTS
models that accept the actual values and forecast new ones.</p></li>
</ul>
</dd>
<dtclass="field-even">Returns</dt>
<ddclass="field-even"><p>a numpy array with the forecasted data</p>
<codeclass="sig-name descname">reset_calculated_values</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.reset_calculated_values"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.reset_calculated_values"title="Permalink to this definition">¶</a></dt>
<dd><p>Reset all pre-calculated values on the FLRG’s</p>
<dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
<ddclass="field-odd"><p></p>
</dd>
</dl>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.shortname">
<codeclass="sig-name descname">shortname</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.shortname"title="Permalink to this definition">¶</a></dt>
<dd><p>A string with a short name or alias for the model</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.standard_horizon">
<codeclass="sig-name descname">standard_horizon</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.standard_horizon"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">train</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">data</span></em>, <emclass="sig-param"><spanclass="o">**</span><spanclass="n">kwargs</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/fts.html#FTS.train"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.fts.FTS.train"title="Permalink to this definition">¶</a></dt>
<dd><p>Method specific parameter fitting</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>data</strong>– training time series data</p></li>
<li><p><strong>kwargs</strong>– Method specific parameters</p></li>
</ul>
</dd>
</dl>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.transformations">
<codeclass="sig-name descname">transformations</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.transformations"title="Permalink to this definition">¶</a></dt>
<dd><p>A list with the data transformations (common.Transformations) applied on model pre and post processing, default: []</p>
<codeclass="sig-name descname">transformations_param</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.transformations_param"title="Permalink to this definition">¶</a></dt>
<dd><p>A list with the specific parameters for each data transformation</p>
</dd></dl>
<dlclass="py attribute">
<dtid="pyFTS.common.fts.FTS.uod_clip">
<codeclass="sig-name descname">uod_clip</code><aclass="headerlink"href="#pyFTS.common.fts.FTS.uod_clip"title="Permalink to this definition">¶</a></dt>
<dd><p>Flag indicating if the test data will be clipped inside the training Universe of Discourse</p>
<spanid="pyfts-common-tree-module"></span><h2>pyFTS.common.tree module<aclass="headerlink"href="#module-pyFTS.common.tree"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">pyFTS.common.tree.</code><codeclass="sig-name descname">FLRGTree</code><aclass="reference internal"href="_modules/pyFTS/common/tree.html#FLRGTree"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.tree.FLRGTree"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">pyFTS.common.tree.</code><codeclass="sig-name descname">FLRGTreeNode</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">value</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/tree.html#FLRGTreeNode"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.tree.FLRGTreeNode"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">appendChild</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">child</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/tree.html#FLRGTreeNode.appendChild"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.tree.FLRGTreeNode.appendChild"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">getChildren</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/tree.html#FLRGTreeNode.getChildren"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.tree.FLRGTreeNode.getChildren"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">getStr</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">k</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/tree.html#FLRGTreeNode.getStr"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.tree.FLRGTreeNode.getStr"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">paths</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">acc</span><spanclass="o">=</span><spanclass="default_value">[]</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/tree.html#FLRGTreeNode.paths"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.tree.FLRGTreeNode.paths"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.tree.</code><codeclass="sig-name descname">build_tree_without_order</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node</span></em>, <emclass="sig-param"><spanclass="n">lags</span></em>, <emclass="sig-param"><spanclass="n">level</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/tree.html#build_tree_without_order"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.tree.build_tree_without_order"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-prename descclassname">pyFTS.common.tree.</code><codeclass="sig-name descname">flat</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">dados</span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/common/tree.html#flat"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.common.tree.flat"title="Permalink to this definition">¶</a></dt>