<spanid="pyfts-partitioners-partitioner-module"></span><h2>pyFTS.partitioners.partitioner module<aclass="headerlink"href="#module-pyFTS.partitioners.partitioner"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="descclassname">pyFTS.partitioners.partitioner.</code><codeclass="descname">Partitioner</code><spanclass="sig-paren">(</span><em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/partitioner.html#Partitioner"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">build</code><spanclass="sig-paren">(</span><em>data</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/partitioner.html#Partitioner.build"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.build"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">build_index</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/partitioner.html#Partitioner.build_index"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.build_index"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">check_bounds</code><spanclass="sig-paren">(</span><em>data</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/partitioner.html#Partitioner.check_bounds"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.check_bounds"title="Permalink to this definition">¶</a></dt>
<dd><p>Check if the input data is outside the known Universe of Discourse and, if it is, round it to the closest
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><strong>data</strong>– input data to be verified</td>
</tr>
<trclass="field-even field"><thclass="field-name">Returns:</th><tdclass="field-body">the index of the closest fuzzy set when data is outside de universe of discourse or None if</td>
<codeclass="descname">extractor</code><emclass="property"> = None</em><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.extractor"title="Permalink to this definition">¶</a></dt>
<dd><p>Anonymous function used to extract a single primitive type from an object instance</p>
<codeclass="descname">fuzzyfy</code><spanclass="sig-paren">(</span><em>data</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/partitioner.html#Partitioner.fuzzyfy"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.fuzzyfy"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_name</code><spanclass="sig-paren">(</span><em>counter</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/partitioner.html#Partitioner.get_name"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.get_name"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">kdtree</code><emclass="property"> = None</em><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.kdtree"title="Permalink to this definition">¶</a></dt>
<dd><p>A spatial index to help in fuzzyfication</p>
<codeclass="descname">lower_set</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/partitioner.html#Partitioner.lower_set"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.lower_set"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">membership_function</code><emclass="property"> = None</em><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.membership_function"title="Permalink to this definition">¶</a></dt>
<dd><p>Fuzzy membership function (pyFTS.common.Membership)</p>
<codeclass="descname">name</code><emclass="property"> = None</em><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.name"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">ordered_sets</code><emclass="property"> = None</em><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.ordered_sets"title="Permalink to this definition">¶</a></dt>
<dd><p>A ordered list of the fuzzy sets names, sorted by their middle point</p>
<codeclass="descname">partitions</code><emclass="property"> = None</em><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.partitions"title="Permalink to this definition">¶</a></dt>
<dd><p>The number of universe of discourse partitions, i.e., the number of fuzzy sets that will be created</p>
<codeclass="descname">plot</code><spanclass="sig-paren">(</span><em>ax</em>, <em>rounding=0</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/partitioner.html#Partitioner.plot"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.plot"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">plot_set</code><spanclass="sig-paren">(</span><em>ax</em>, <em>s</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/partitioner.html#Partitioner.plot_set"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.plot_set"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">prefix</code><emclass="property"> = None</em><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.prefix"title="Permalink to this definition">¶</a></dt>
<dd><p>prefix of auto generated partition names</p>
<codeclass="descname">search</code><spanclass="sig-paren">(</span><em>data</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/partitioner.html#Partitioner.search"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.search"title="Permalink to this definition">¶</a></dt>
<dd><p>Perform a search for the nearest fuzzy sets of the point ‘data’. This function were designed to work with several
<codeclass="descname">setnames</code><emclass="property"> = None</em><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.setnames"title="Permalink to this definition">¶</a></dt>
<dd><p>list of partitions names. If None is given the partitions will be auto named with prefix</p>
<codeclass="descname">transformation</code><emclass="property"> = None</em><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.transformation"title="Permalink to this definition">¶</a></dt>
<dd><p>data transformation to be applied on data</p>
<codeclass="descname">type</code><emclass="property"> = None</em><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.type"title="Permalink to this definition">¶</a></dt>
<dd><p>The type of fuzzy sets that are generated by this partitioner</p>
<codeclass="descname">upper_set</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/partitioner.html#Partitioner.upper_set"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.upper_set"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">variable</code><emclass="property"> = None</em><aclass="headerlink"href="#pyFTS.partitioners.partitioner.Partitioner.variable"title="Permalink to this definition">¶</a></dt>
<dd><p>In a multivariate context, the variable that contains this partitioner</p>
<spanid="pyfts-partitioners-cmeans-module"></span><h2>pyFTS.partitioners.CMeans module<aclass="headerlink"href="#module-pyFTS.partitioners.CMeans"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="descclassname">pyFTS.partitioners.CMeans.</code><codeclass="descname">CMeansPartitioner</code><spanclass="sig-paren">(</span><em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/CMeans.html#CMeansPartitioner"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.CMeans.CMeansPartitioner"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">build</code><spanclass="sig-paren">(</span><em>data</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/CMeans.html#CMeansPartitioner.build"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.CMeans.CMeansPartitioner.build"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.partitioners.CMeans.</code><codeclass="descname">c_means</code><spanclass="sig-paren">(</span><em>k</em>, <em>dados</em>, <em>tam</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/CMeans.html#c_means"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.CMeans.c_means"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.partitioners.CMeans.</code><codeclass="descname">distance</code><spanclass="sig-paren">(</span><em>x</em>, <em>y</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/CMeans.html#distance"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.CMeans.distance"title="Permalink to this definition">¶</a></dt>
<spanid="pyfts-partitioners-entropy-module"></span><h2>pyFTS.partitioners.Entropy module<aclass="headerlink"href="#module-pyFTS.partitioners.Entropy"title="Permalink to this headline">¶</a></h2>
<p>C. H. Cheng, R. J. Chang, and C. A. Yeh, “Entropy-based and trapezoidal fuzzification-based fuzzy time series approach for forecasting IT project cost,”
Technol. Forecast. Social Change, vol. 73, no. 5, pp. 524–542, Jun. 2006.</p>
<emclass="property">class </em><codeclass="descclassname">pyFTS.partitioners.Entropy.</code><codeclass="descname">EntropyPartitioner</code><spanclass="sig-paren">(</span><em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Entropy.html#EntropyPartitioner"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Entropy.EntropyPartitioner"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">build</code><spanclass="sig-paren">(</span><em>data</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Entropy.html#EntropyPartitioner.build"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Entropy.EntropyPartitioner.build"title="Permalink to this definition">¶</a></dt>
<dd><p>Perform the partitioning of the Universe of Discourse</p>
<codeclass="descclassname">pyFTS.partitioners.Entropy.</code><codeclass="descname">PMF</code><spanclass="sig-paren">(</span><em>data</em>, <em>threshold</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Entropy.html#PMF"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Entropy.PMF"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="function">
<dtid="pyFTS.partitioners.Entropy.bestSplit">
<codeclass="descclassname">pyFTS.partitioners.Entropy.</code><codeclass="descname">bestSplit</code><spanclass="sig-paren">(</span><em>data</em>, <em>npart</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Entropy.html#bestSplit"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Entropy.bestSplit"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="function">
<dtid="pyFTS.partitioners.Entropy.entropy">
<codeclass="descclassname">pyFTS.partitioners.Entropy.</code><codeclass="descname">entropy</code><spanclass="sig-paren">(</span><em>data</em>, <em>threshold</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Entropy.html#entropy"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Entropy.entropy"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.partitioners.Entropy.</code><codeclass="descname">informationGain</code><spanclass="sig-paren">(</span><em>data</em>, <em>thres1</em>, <em>thres2</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Entropy.html#informationGain"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Entropy.informationGain"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="function">
<dtid="pyFTS.partitioners.Entropy.splitAbove">
<codeclass="descclassname">pyFTS.partitioners.Entropy.</code><codeclass="descname">splitAbove</code><spanclass="sig-paren">(</span><em>data</em>, <em>threshold</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Entropy.html#splitAbove"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Entropy.splitAbove"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="function">
<dtid="pyFTS.partitioners.Entropy.splitBelow">
<codeclass="descclassname">pyFTS.partitioners.Entropy.</code><codeclass="descname">splitBelow</code><spanclass="sig-paren">(</span><em>data</em>, <em>threshold</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Entropy.html#splitBelow"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Entropy.splitBelow"title="Permalink to this definition">¶</a></dt>
<spanid="pyfts-partitioners-fcm-module"></span><h2>pyFTS.partitioners.FCM module<aclass="headerlink"href="#module-pyFTS.partitioners.FCM"title="Permalink to this headline">¶</a></h2>
<p>S. T. Li, Y. C. Cheng, and S. Y. Lin, “A FCM-based deterministic forecasting model for fuzzy time series,”
<emclass="property">class </em><codeclass="descclassname">pyFTS.partitioners.FCM.</code><codeclass="descname">FCMPartitioner</code><spanclass="sig-paren">(</span><em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/FCM.html#FCMPartitioner"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.FCM.FCMPartitioner"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">build</code><spanclass="sig-paren">(</span><em>data</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/FCM.html#FCMPartitioner.build"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.FCM.FCMPartitioner.build"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.partitioners.FCM.</code><codeclass="descname">fuzzy_cmeans</code><spanclass="sig-paren">(</span><em>k</em>, <em>dados</em>, <em>tam</em>, <em>m</em>, <em>deltadist=0.001</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/FCM.html#fuzzy_cmeans"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.FCM.fuzzy_cmeans"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">pyFTS.partitioners.FCM.</code><codeclass="descname">fuzzy_distance</code><spanclass="sig-paren">(</span><em>x</em>, <em>y</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/FCM.html#fuzzy_distance"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.FCM.fuzzy_distance"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="function">
<dtid="pyFTS.partitioners.FCM.membership">
<codeclass="descclassname">pyFTS.partitioners.FCM.</code><codeclass="descname">membership</code><spanclass="sig-paren">(</span><em>val</em>, <em>vals</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/FCM.html#membership"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.FCM.membership"title="Permalink to this definition">¶</a></dt>
<spanid="pyfts-partitioners-grid-module"></span><h2>pyFTS.partitioners.Grid module<aclass="headerlink"href="#module-pyFTS.partitioners.Grid"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="descclassname">pyFTS.partitioners.Grid.</code><codeclass="descname">GridPartitioner</code><spanclass="sig-paren">(</span><em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Grid.html#GridPartitioner"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Grid.GridPartitioner"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">build</code><spanclass="sig-paren">(</span><em>data</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Grid.html#GridPartitioner.build"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Grid.GridPartitioner.build"title="Permalink to this definition">¶</a></dt>
<spanid="pyfts-partitioners-huarng-module"></span><h2>pyFTS.partitioners.Huarng module<aclass="headerlink"href="#module-pyFTS.partitioners.Huarng"title="Permalink to this headline">¶</a></h2>
<p>K. H. Huarng, “Effective lengths of intervals to improve forecasting in fuzzy time series,”
<emclass="property">class </em><codeclass="descclassname">pyFTS.partitioners.Huarng.</code><codeclass="descname">HuarngPartitioner</code><spanclass="sig-paren">(</span><em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Huarng.html#HuarngPartitioner"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Huarng.HuarngPartitioner"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">build</code><spanclass="sig-paren">(</span><em>data</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Huarng.html#HuarngPartitioner.build"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Huarng.HuarngPartitioner.build"title="Permalink to this definition">¶</a></dt>
<dd><p>Perform the partitioning of the Universe of Discourse</p>
<spanid="pyfts-partitioners-singleton-module"></span><h2>pyFTS.partitioners.Singleton module<aclass="headerlink"href="#module-pyFTS.partitioners.Singleton"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="descclassname">pyFTS.partitioners.Singleton.</code><codeclass="descname">SingletonPartitioner</code><spanclass="sig-paren">(</span><em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Singleton.html#SingletonPartitioner"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Singleton.SingletonPartitioner"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">build</code><spanclass="sig-paren">(</span><em>data</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Singleton.html#SingletonPartitioner.build"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Singleton.SingletonPartitioner.build"title="Permalink to this definition">¶</a></dt>
<dd><p>Perform the partitioning of the Universe of Discourse</p>
<spanid="pyfts-partitioners-simple-module"></span><h2>pyFTS.partitioners.Simple module<aclass="headerlink"href="#module-pyFTS.partitioners.Simple"title="Permalink to this headline">¶</a></h2>
<p>Simple Partitioner for manually informed fuzzy sets</p>
<emclass="property">class </em><codeclass="descclassname">pyFTS.partitioners.Simple.</code><codeclass="descname">SimplePartitioner</code><spanclass="sig-paren">(</span><em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Simple.html#SimplePartitioner"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Simple.SimplePartitioner"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">append</code><spanclass="sig-paren">(</span><em>name</em>, <em>mf</em>, <em>parameters</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Simple.html#SimplePartitioner.append"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Simple.SimplePartitioner.append"title="Permalink to this definition">¶</a></dt>
<dd><p>Append a new partition (fuzzy set) to the partitioner</p>
<codeclass="descname">append_complex</code><spanclass="sig-paren">(</span><em>fs</em><spanclass="sig-paren">)</span><aclass="reference internal"href="_modules/pyFTS/partitioners/Simple.html#SimplePartitioner.append_complex"><spanclass="viewcode-link">[source]</span></a><aclass="headerlink"href="#pyFTS.partitioners.Simple.SimplePartitioner.append_complex"title="Permalink to this definition">¶</a></dt>
<spanid="pyfts-partitioners-util-module"></span><h2>pyFTS.partitioners.Util module<aclass="headerlink"href="#module-pyFTS.partitioners.Util"title="Permalink to this headline">¶</a></h2>
<p>Facility methods for pyFTS partitioners module</p>
<spanid="pyfts-partitioners-parallel-util-module"></span><h2>pyFTS.partitioners.parallel_util module<aclass="headerlink"href="#module-pyFTS.partitioners.parallel_util"title="Permalink to this headline">¶</a></h2>