<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="descclassname">pyFTS.common.Composite.</code><codeclass="descname">FuzzySet</code><spanclass="sig-paren">(</span><em>name</em>, <em>superset=False</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Composite.FuzzySet"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">append</code><spanclass="sig-paren">(</span><em>mf</em>, <em>parameters</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Composite.FuzzySet.append"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">append_set</code><spanclass="sig-paren">(</span><em>set</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Composite.FuzzySet.append_set"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">membership</code><spanclass="sig-paren">(</span><em>x</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Composite.FuzzySet.membership"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">transform</code><spanclass="sig-paren">(</span><em>x</em><spanclass="sig-paren">)</span><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="descclassname">pyFTS.common.FLR.</code><codeclass="descname">FLR</code><spanclass="sig-paren">(</span><em>LHS</em>, <em>RHS</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FLR.FLR"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="descclassname">pyFTS.common.FLR.</code><codeclass="descname">IndexedFLR</code><spanclass="sig-paren">(</span><em>index</em>, <em>LHS</em>, <em>RHS</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FLR.IndexedFLR"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.FLR.</code><codeclass="descname">generate_high_order_recurrent_flr</code><spanclass="sig-paren">(</span><em>fuzzyData</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FLR.generate_high_order_recurrent_flr"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.FLR.</code><codeclass="descname">generate_indexed_flrs</code><spanclass="sig-paren">(</span><em>sets</em>, <em>indexer</em>, <em>data</em>, <em>transformation=None</em>, <em>alpha_cut=0.0</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FLR.generate_indexed_flrs"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.FLR.</code><codeclass="descname">generate_non_recurrent_flrs</code><spanclass="sig-paren">(</span><em>fuzzyData</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FLR.generate_non_recurrent_flrs"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.FLR.</code><codeclass="descname">generate_recurrent_flrs</code><spanclass="sig-paren">(</span><em>fuzzyData</em><spanclass="sig-paren">)</span><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>
<emclass="property">class </em><codeclass="descclassname">pyFTS.common.FuzzySet.</code><codeclass="descname">FuzzySet</code><spanclass="sig-paren">(</span><em>name</em>, <em>mf</em>, <em>parameters</em>, <em>centroid</em>, <em>alpha=1.0</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FuzzySet.FuzzySet"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">membership</code><spanclass="sig-paren">(</span><em>x</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FuzzySet.FuzzySet.membership"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">partition_function</code><spanclass="sig-paren">(</span><em>uod=None</em>, <em>nbins=100</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FuzzySet.FuzzySet.partition_function"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">transform</code><spanclass="sig-paren">(</span><em>x</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FuzzySet.FuzzySet.transform"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.FuzzySet.</code><codeclass="descname">check_bounds</code><spanclass="sig-paren">(</span><em>data</em>, <em>fuzzy_sets</em>, <em>ordered_sets</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FuzzySet.check_bounds"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.FuzzySet.</code><codeclass="descname">check_bounds_index</code><spanclass="sig-paren">(</span><em>data</em>, <em>fuzzy_sets</em>, <em>ordered_sets</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FuzzySet.check_bounds_index"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.FuzzySet.</code><codeclass="descname">fuzzyfy</code><spanclass="sig-paren">(</span><em>data</em>, <em>partitioner</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FuzzySet.fuzzyfy"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.FuzzySet.</code><codeclass="descname">fuzzyfy_instance</code><spanclass="sig-paren">(</span><em>inst</em>, <em>fuzzy_sets</em>, <em>ordered_sets=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FuzzySet.fuzzyfy_instance"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.FuzzySet.</code><codeclass="descname">fuzzyfy_instances</code><spanclass="sig-paren">(</span><em>data</em>, <em>fuzzy_sets</em>, <em>ordered_sets=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FuzzySet.fuzzyfy_instances"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.FuzzySet.</code><codeclass="descname">fuzzyfy_series</code><spanclass="sig-paren">(</span><em>data</em>, <em>fuzzy_sets</em>, <em>method='maximum'</em>, <em>alpha_cut=0.0</em>, <em>ordered_sets=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FuzzySet.fuzzyfy_series"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.FuzzySet.</code><codeclass="descname">fuzzyfy_series_old</code><spanclass="sig-paren">(</span><em>data</em>, <em>fuzzy_sets</em>, <em>method='maximum'</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FuzzySet.fuzzyfy_series_old"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.FuzzySet.</code><codeclass="descname">get_fuzzysets</code><spanclass="sig-paren">(</span><em>inst</em>, <em>fuzzy_sets</em>, <em>ordered_sets=None</em>, <em>alpha_cut=0.0</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FuzzySet.get_fuzzysets"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.FuzzySet.</code><codeclass="descname">get_maximum_membership_fuzzyset</code><spanclass="sig-paren">(</span><em>inst</em>, <em>fuzzy_sets</em>, <em>ordered_sets=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FuzzySet.get_maximum_membership_fuzzyset"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.FuzzySet.</code><codeclass="descname">get_maximum_membership_fuzzyset_index</code><spanclass="sig-paren">(</span><em>inst</em>, <em>fuzzy_sets</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FuzzySet.get_maximum_membership_fuzzyset_index"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.FuzzySet.</code><codeclass="descname">grant_bounds</code><spanclass="sig-paren">(</span><em>data</em>, <em>fuzzy_sets</em>, <em>ordered_sets</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FuzzySet.grant_bounds"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.FuzzySet.</code><codeclass="descname">set_ordered</code><spanclass="sig-paren">(</span><em>fuzzy_sets</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.FuzzySet.set_ordered"title="Permalink to this definition">¶</a></dt>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><strong>fuzzy_sets</strong>– a dictionary where the key is the fuzzy set name and the value is the fuzzy set object.</td>
</tr>
<trclass="field-even field"><thclass="field-name">Returns:</th><tdclass="field-body">a list with the fuzzy sets names ordered by their centroids.</td>
<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="descclassname">pyFTS.common.Membership.</code><codeclass="descname">bellmf</code><spanclass="sig-paren">(</span><em>x</em>, <em>parameters</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Membership.bellmf"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Membership.</code><codeclass="descname">gaussmf</code><spanclass="sig-paren">(</span><em>x</em>, <em>parameters</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Membership.gaussmf"title="Permalink to this definition">¶</a></dt>
<li><strong>parameters</strong>– a list with 2 real values (mean and variance)</li>
</ul>
</td>
</tr>
<trclass="field-even field"><thclass="field-name">Returns:</th><tdclass="field-body"><pclass="first last">the membership value of x given the parameters</p>
<codeclass="descclassname">pyFTS.common.Membership.</code><codeclass="descname">sigmf</code><spanclass="sig-paren">(</span><em>x</em>, <em>parameters</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Membership.sigmf"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Membership.</code><codeclass="descname">singleton</code><spanclass="sig-paren">(</span><em>x</em>, <em>parameters</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Membership.singleton"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Membership.</code><codeclass="descname">trapmf</code><spanclass="sig-paren">(</span><em>x</em>, <em>parameters</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Membership.trapmf"title="Permalink to this definition">¶</a></dt>
<li><strong>parameters</strong>– a list with 4 real values</li>
</ul>
</td>
</tr>
<trclass="field-even field"><thclass="field-name">Returns:</th><tdclass="field-body"><pclass="first last">the membership value of x given the parameters</p>
<codeclass="descclassname">pyFTS.common.Membership.</code><codeclass="descname">trimf</code><spanclass="sig-paren">(</span><em>x</em>, <em>parameters</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Membership.trimf"title="Permalink to this definition">¶</a></dt>
<li><strong>parameters</strong>– a list with 3 real values</li>
</ul>
</td>
</tr>
<trclass="field-even field"><thclass="field-name">Returns:</th><tdclass="field-body"><pclass="first last">the membership value of x given the parameters</p>
<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="descclassname">pyFTS.common.SortedCollection.</code><codeclass="descname">SortedCollection</code><spanclass="sig-paren">(</span><em>iterable=()</em>, <em>key=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection"title="Permalink to this definition">¶</a></dt>
<divclass="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="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="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="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="descname">around</code><spanclass="sig-paren">(</span><em>k</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.around"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">between</code><spanclass="sig-paren">(</span><em>ge</em>, <em>le</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.between"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">clear</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.clear"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">copy</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.copy"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">count</code><spanclass="sig-paren">(</span><em>item</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.count"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">find</code><spanclass="sig-paren">(</span><em>k</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.find"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">find_ge</code><spanclass="sig-paren">(</span><em>k</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.find_ge"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">find_gt</code><spanclass="sig-paren">(</span><em>k</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.find_gt"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">find_le</code><spanclass="sig-paren">(</span><em>k</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.find_le"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">find_lt</code><spanclass="sig-paren">(</span><em>k</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.find_lt"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">index</code><spanclass="sig-paren">(</span><em>item</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.index"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">insert</code><spanclass="sig-paren">(</span><em>item</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.insert"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">insert_right</code><spanclass="sig-paren">(</span><em>item</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.insert_right"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">inside</code><spanclass="sig-paren">(</span><em>ge</em>, <em>le</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.inside"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">key</code><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.key"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">remove</code><spanclass="sig-paren">(</span><em>item</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.SortedCollection.SortedCollection.remove"title="Permalink to this definition">¶</a></dt>
<spanid="pyfts-common-transformations-module"></span><h2>pyFTS.common.Transformations module<aclass="headerlink"href="#module-pyFTS.common.Transformations"title="Permalink to this headline">¶</a></h2>
<p>Common data transformation used on pre and post processing of the FTS</p>
<emclass="property">class </em><codeclass="descclassname">pyFTS.common.Transformations.</code><codeclass="descname">AdaptiveExpectation</code><spanclass="sig-paren">(</span><em>parameters</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.AdaptiveExpectation"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">apply</code><spanclass="sig-paren">(</span><em>data</em>, <em>param=None</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.AdaptiveExpectation.apply"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">inverse</code><spanclass="sig-paren">(</span><em>data</em>, <em>param</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.AdaptiveExpectation.inverse"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">parameters</code><aclass="headerlink"href="#pyFTS.common.Transformations.AdaptiveExpectation.parameters"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="descclassname">pyFTS.common.Transformations.</code><codeclass="descname">BoxCox</code><spanclass="sig-paren">(</span><em>plambda</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.BoxCox"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">apply</code><spanclass="sig-paren">(</span><em>data</em>, <em>param=None</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.BoxCox.apply"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">inverse</code><spanclass="sig-paren">(</span><em>data</em>, <em>param=None</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.BoxCox.inverse"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">parameters</code><aclass="headerlink"href="#pyFTS.common.Transformations.BoxCox.parameters"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="descclassname">pyFTS.common.Transformations.</code><codeclass="descname">Differential</code><spanclass="sig-paren">(</span><em>lag</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.Differential"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">apply</code><spanclass="sig-paren">(</span><em>data</em>, <em>param=None</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.Differential.apply"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">inverse</code><spanclass="sig-paren">(</span><em>data</em>, <em>param</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.Differential.inverse"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">parameters</code><aclass="headerlink"href="#pyFTS.common.Transformations.Differential.parameters"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="descclassname">pyFTS.common.Transformations.</code><codeclass="descname">Scale</code><spanclass="sig-paren">(</span><em>min=0</em>, <em>max=1</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.Scale"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">apply</code><spanclass="sig-paren">(</span><em>data</em>, <em>param=None</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.Scale.apply"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">inverse</code><spanclass="sig-paren">(</span><em>data</em>, <em>param</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.Scale.inverse"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">parameters</code><aclass="headerlink"href="#pyFTS.common.Transformations.Scale.parameters"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="descclassname">pyFTS.common.Transformations.</code><codeclass="descname">Transformation</code><spanclass="sig-paren">(</span><em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.Transformation"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">apply</code><spanclass="sig-paren">(</span><em>data</em>, <em>param</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.Transformation.apply"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">inverse</code><spanclass="sig-paren">(</span><em>data</em>, <em>param</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.Transformation.inverse"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Transformations.</code><codeclass="descname">Z</code><spanclass="sig-paren">(</span><em>original</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.Z"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Transformations.</code><codeclass="descname">aggregate</code><spanclass="sig-paren">(</span><em>original</em>, <em>operation</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.aggregate"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Transformations.</code><codeclass="descname">roi</code><spanclass="sig-paren">(</span><em>original</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.roi"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Transformations.</code><codeclass="descname">smoothing</code><spanclass="sig-paren">(</span><em>original</em>, <em>lags</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Transformations.smoothing"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="function">
<dtid="pyFTS.common.Util.current_milli_time">
<codeclass="descclassname">pyFTS.common.Util.</code><codeclass="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>
<codeclass="descclassname">pyFTS.common.Util.</code><codeclass="descname">draw_sets_on_axis</code><spanclass="sig-paren">(</span><em>axis</em>, <em>model</em>, <em>size</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Util.draw_sets_on_axis"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Util.</code><codeclass="descname">enumerate2</code><spanclass="sig-paren">(</span><em>xs</em>, <em>start=0</em>, <em>step=1</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Util.enumerate2"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Util.</code><codeclass="descname">load_env</code><spanclass="sig-paren">(</span><em>file</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Util.load_env"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Util.</code><codeclass="descname">load_obj</code><spanclass="sig-paren">(</span><em>file</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Util.load_obj"title="Permalink to this definition">¶</a></dt>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><strong>file</strong>– file name where the object is stored</td>
<codeclass="descclassname">pyFTS.common.Util.</code><codeclass="descname">persist_env</code><spanclass="sig-paren">(</span><em>file</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Util.persist_env"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Util.</code><codeclass="descname">persist_obj</code><spanclass="sig-paren">(</span><em>obj</em>, <em>file</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Util.persist_obj"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Util.</code><codeclass="descname">plot_density_rectange</code><spanclass="sig-paren">(</span><em>ax</em>, <em>cmap</em>, <em>density</em>, <em>fig</em>, <em>resolution</em>, <em>time_from</em>, <em>time_to</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Util.plot_density_rectange"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Util.</code><codeclass="descname">plot_distribution</code><spanclass="sig-paren">(</span><em>ax</em>, <em>cmap</em>, <em>probabilitydist</em>, <em>fig</em>, <em>time_from</em>, <em>reference_data=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Util.plot_distribution"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Util.</code><codeclass="descname">plot_distribution2</code><spanclass="sig-paren">(</span><em>probabilitydist</em>, <em>data</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Util.plot_distribution2"title="Permalink to this definition">¶</a></dt>
<dd><p>Plot distributions over the time (x-axis)</p>
<codeclass="descclassname">pyFTS.common.Util.</code><codeclass="descname">plot_interval2</code><spanclass="sig-paren">(</span><em>intervals</em>, <em>data</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Util.plot_interval2"title="Permalink to this definition">¶</a></dt>
<dd><p>Plot forecasted intervals on matplotlib</p>
<codeclass="descclassname">pyFTS.common.Util.</code><codeclass="descname">plot_probability_distributions</code><spanclass="sig-paren">(</span><em>pmfs, lcolors, tam=[15, 7]</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Util.plot_probability_distributions"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Util.</code><codeclass="descname">plot_rules</code><spanclass="sig-paren">(</span><em>model, size=[5, 5], axis=None, rules_by_axis=None, columns=1</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Util.plot_rules"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Util.</code><codeclass="descname">show_and_save_image</code><spanclass="sig-paren">(</span><em>fig</em>, <em>file</em>, <em>flag</em>, <em>lgd=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Util.show_and_save_image"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Util.</code><codeclass="descname">sliding_window</code><spanclass="sig-paren">(</span><em>data</em>, <em>windowsize</em>, <em>train=0.8</em>, <em>inc=0.1</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.Util.sliding_window"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.Util.</code><codeclass="descname">uniquefilename</code><spanclass="sig-paren">(</span><em>name</em><spanclass="sig-paren">)</span><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>
<emclass="property">class </em><codeclass="descclassname">pyFTS.common.flrg.</code><codeclass="descname">FLRG</code><spanclass="sig-paren">(</span><em>order</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.flrg.FLRG"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">append_rhs</code><spanclass="sig-paren">(</span><em>set</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.flrg.FLRG.append_rhs"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_key</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.flrg.FLRG.get_key"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_lower</code><spanclass="sig-paren">(</span><em>sets</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.flrg.FLRG.get_lower"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_membership</code><spanclass="sig-paren">(</span><em>data</em>, <em>sets</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.flrg.FLRG.get_membership"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_midpoint</code><spanclass="sig-paren">(</span><em>sets</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.flrg.FLRG.get_midpoint"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_midpoints</code><spanclass="sig-paren">(</span><em>sets</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.flrg.FLRG.get_midpoints"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_upper</code><spanclass="sig-paren">(</span><em>sets</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.flrg.FLRG.get_upper"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">reset_calculated_values</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><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>
<emclass="property">class </em><codeclass="descclassname">pyFTS.common.fts.</code><codeclass="descname">FTS</code><spanclass="sig-paren">(</span><em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">append_log</code><spanclass="sig-paren">(</span><em>operation</em>, <em>value</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.append_log"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">append_rule</code><spanclass="sig-paren">(</span><em>flrg</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.append_rule"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">append_transformation</code><spanclass="sig-paren">(</span><em>transformation</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.append_transformation"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">apply_inverse_transformations</code><spanclass="sig-paren">(</span><em>data</em>, <em>params=None</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.apply_inverse_transformations"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">apply_transformations</code><spanclass="sig-paren">(</span><em>data</em>, <em>params=None</em>, <em>updateUoD=False</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.apply_transformations"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">clip_uod</code><spanclass="sig-paren">(</span><em>ndata</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.clip_uod"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">clone_parameters</code><spanclass="sig-paren">(</span><em>model</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.clone_parameters"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">fit</code><spanclass="sig-paren">(</span><em>ndata</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.fit"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">forecast</code><spanclass="sig-paren">(</span><em>data</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">forecast_ahead</code><spanclass="sig-paren">(</span><em>data</em>, <em>steps</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast_ahead"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">forecast_ahead_distribution</code><spanclass="sig-paren">(</span><em>data</em>, <em>steps</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast_ahead_distribution"title="Permalink to this definition">¶</a></dt>
<trclass="field-even field"><thclass="field-name">Returns:</th><tdclass="field-body"><pclass="first last">a list with the forecasted Probability Distributions</p>
<codeclass="descname">forecast_ahead_interval</code><spanclass="sig-paren">(</span><em>data</em>, <em>steps</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast_ahead_interval"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">forecast_ahead_multivariate</code><spanclass="sig-paren">(</span><em>data</em>, <em>steps</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast_ahead_multivariate"title="Permalink to this definition">¶</a></dt>
<trclass="field-even field"><thclass="field-name">Returns:</th><tdclass="field-body"><pclass="first last">a Pandas Dataframe object representing the forecasted values for each variable</p>
<codeclass="descname">forecast_distribution</code><spanclass="sig-paren">(</span><em>data</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast_distribution"title="Permalink to this definition">¶</a></dt>
<trclass="field-even field"><thclass="field-name">Returns:</th><tdclass="field-body"><pclass="first last">a list with probabilistic.ProbabilityDistribution objects representing the forecasted Probability Distributions</p>
<codeclass="descname">forecast_interval</code><spanclass="sig-paren">(</span><em>data</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast_interval"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">forecast_multivariate</code><spanclass="sig-paren">(</span><em>data</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.forecast_multivariate"title="Permalink to this definition">¶</a></dt>
<li><strong>data</strong>– Pandas dataframe with one column for each variable and with the minimal length equal to the max_lag of the model</li>
<li><strong>kwargs</strong>– model specific parameters</li>
</ul>
</td>
</tr>
<trclass="field-even field"><thclass="field-name">Returns:</th><tdclass="field-body"><pclass="first last">a Pandas Dataframe object representing the forecasted values for each variable</p>
<codeclass="descname">fuzzy</code><spanclass="sig-paren">(</span><em>data</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.fuzzy"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_UoD</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.get_UoD"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">len_total</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.len_total"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">merge</code><spanclass="sig-paren">(</span><em>model</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.merge"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">predict</code><spanclass="sig-paren">(</span><em>data</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.predict"title="Permalink to this definition">¶</a></dt>
<li><strong>explain</strong>– try to explain, step by step, the one-step-ahead point forecasting result given the input data. (default value: False)</li>
<codeclass="descname">reset_calculated_values</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.reset_calculated_values"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">train</code><spanclass="sig-paren">(</span><em>data</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.fts.FTS.train"title="Permalink to this definition">¶</a></dt>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><ulclass="first last simple">
<li><strong>data</strong>– training time series data</li>
<li><strong>kwargs</strong>– Method specific parameters</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>
</dd></dl>
</div>
<divclass="section"id="module-pyFTS.common.tree">
<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="descclassname">pyFTS.common.tree.</code><codeclass="descname">FLRGTree</code><aclass="headerlink"href="#pyFTS.common.tree.FLRGTree"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="descclassname">pyFTS.common.tree.</code><codeclass="descname">FLRGTreeNode</code><spanclass="sig-paren">(</span><em>value</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.tree.FLRGTreeNode"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">appendChild</code><spanclass="sig-paren">(</span><em>child</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.tree.FLRGTreeNode.appendChild"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">getChildren</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.tree.FLRGTreeNode.getChildren"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">getStr</code><spanclass="sig-paren">(</span><em>k</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.tree.FLRGTreeNode.getStr"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">paths</code><spanclass="sig-paren">(</span><em>acc=[]</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.tree.FLRGTreeNode.paths"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.tree.</code><codeclass="descname">build_tree_without_order</code><spanclass="sig-paren">(</span><em>node</em>, <em>lags</em>, <em>level</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.tree.build_tree_without_order"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.common.tree.</code><codeclass="descname">flat</code><spanclass="sig-paren">(</span><em>dados</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#pyFTS.common.tree.flat"title="Permalink to this definition">¶</a></dt>