Welcome to pyFTS’s documentation!¶
+pyFTS - Fuzzy Time Series for Python¶
What is pyFTS Library?¶
-This package is intended for students, researchers, data scientists or whose want to exploit the Fuzzy Time Series methods. These methods provide simple, easy to use, computationally cheap and human-readable models, suitable from statistic laymans to experts.
+ + Fork me on GitHubThis package is intended for students, researchers, data scientists or whose want to exploit the Fuzzy Time Series methods. These methods provide simple, easy to use, computationally cheap and human-readable models, suitable from statistic laymans to experts.
This tool is developed on MINDS Lab, headed by Prof. Frederico Gadelha Guimarães from Electrical Engineering Departament of Federal University @@ -133,8 +141,8 @@ src="http://www.ifmg.edu.br/portal/imagens/logovertical.jpg" alt="IFMG" width="1
How to reference pyFTS?¶
- -Silva, P. C. L. et al. pyFTS: Fuzzy Time Series for Python (Version v4.0). Belo Horizonte. 2018. DOI: 10.5281/zenodo.1405817. Url: <https://doi.org/10.5281/zenodo.1405817>
+ +Silva, P. C. L. et al. pyFTS: Fuzzy Time Series for Python. Belo Horizonte. 2018. DOI: 10.5281/zenodo.597359. Url: <https://doi.org/10.5281/zenodo.597359>
Indexes¶
diff --git a/docs/build/html/modules.html b/docs/build/html/modules.html index b6b41fc..109b34d 100644 --- a/docs/build/html/modules.html +++ b/docs/build/html/modules.html @@ -117,21 +117,28 @@- Module contents
- Submodules -
- pyFTS.data.AirPassengers module -
- pyFTS.data.Enrollments module -
- pyFTS.data.INMET module -
- pyFTS.data.NASDAQ module -
- pyFTS.data.SONDA module -
- pyFTS.data.SP500 module -
- pyFTS.data.TAIEX module -
- pyFTS.data.artificial module
- pyFTS.data.common module -
- pyFTS.data.henon module -
- pyFTS.data.logistic_map module -
- pyFTS.data.lorentz module -
- pyFTS.data.mackey_glass module -
- pyFTS.data.rossler module -
- pyFTS.data.sunspots module +
- Datasets +
- AirPassengers dataset +
- Bitcoin dataset +
- DowJones dataset +
- Enrollments dataset +
- Ethereum dataset +
- EUR-GBP dataset +
- EUR-USD dataset +
- GBP-USD dataset +
- INMET dataset +
- NASDAQ module +
- SONDA dataset +
- S&P 500 dataset +
- TAIEX dataset +
- pyFTS.data.artificial module +
- Henon chaotic time series +
- Logistic_map chaotic time series +
- Lorentz chaotic time series +
- Mackey-Glass chaotic time series +
- Rossler chaotic time series +
- Sunspots dataset
-
diff --git a/docs/build/html/objects.inv b/docs/build/html/objects.inv
index b15edec..0481bb4 100644
Binary files a/docs/build/html/objects.inv and b/docs/build/html/objects.inv differ
diff --git a/docs/build/html/pyFTS.common.html b/docs/build/html/pyFTS.common.html
index ae48148..f5e369b 100644
--- a/docs/build/html/pyFTS.common.html
+++ b/docs/build/html/pyFTS.common.html
@@ -381,17 +381,40 @@
-
-
pyFTS.common.FuzzySet.
check_bounds
(data, sets, ordered_sets)[source]¶
+ -
-
pyFTS.common.FuzzySet.
check_bounds_index
(data, sets, ordered_sets)[source]¶
+ -
+
pyFTS.common.FuzzySet.
fuzzyfy
(data, partitioner, **kwargs)[source]¶
+ A general method for fuzzyfication.
++
++ + + + +Parameters: +-
+
- data – input value to be fuzzyfied +
- partitioner – a trained pyFTS.partitioners.Partitioner object +
- kwargs – dict, optional arguments +
- alpha_cut – the minimal membership value to be considered on fuzzyfication (only for mode=’sets’) +
- method – the fuzzyfication method (fuzzy: all fuzzy memberships, maximum: only the maximum membership) +
- mode – the fuzzyfication mode (sets: return the fuzzy sets names, vector: return a vector with the membership values for all fuzzy sets) +
:returns a list with the fuzzyfied values, depending on the mode
+-
-
pyFTS.common.FuzzySet.
fuzzyfy_instance
(inst, fuzzySets, ordered_sets=None)[source]¶
+ Calculate the membership values for a data point given fuzzy sets
@@ -399,7 +422,8 @@ @@ -412,7 +436,7 @@Parameters: - inst – data point -
- fuzzySets – dict of fuzzy sets +
- fuzzy_sets – a dictionary where the key is the fuzzy set name and the value is the fuzzy set object. +
- ordered_sets – a list with the fuzzy sets names ordered by their centroids.
-
-
pyFTS.common.FuzzySet.
fuzzyfy_instances
(data, fuzzySets, ordered_sets=None)[source]¶
+ Calculate the membership values for a data point given fuzzy sets
@@ -420,7 +444,8 @@ @@ -433,17 +458,17 @@Parameters: - inst – data point -
- fuzzySets – dict of fuzzy sets +
- fuzzy_sets – a dictionary where the key is the fuzzy set name and the value is the fuzzy set object. +
- ordered_sets – a list with the fuzzy sets names ordered by their centroids.
-
-
pyFTS.common.FuzzySet.
fuzzyfy_series
(data, fuzzySets, method='maximum', alpha_cut=0.0)[source]¶
+
pyFTS.common.FuzzySet.
fuzzyfy_series
(data, fuzzy_sets, method='maximum', alpha_cut=0.0, ordered_sets=None)[source]¶-
-
pyFTS.common.FuzzySet.
fuzzyfy_series_old
(data, fuzzySets, method='maximum')[source]¶
+
pyFTS.common.FuzzySet.
fuzzyfy_series_old
(data, fuzzy_sets, method='maximum')[source]¶-
-
pyFTS.common.FuzzySet.
get_fuzzysets
(inst, fuzzySets, ordered_sets=None, alpha_cut=0.0)[source]¶
+ Return the fuzzy sets which membership value for a inst is greater than the alpha_cut
@@ -451,7 +476,8 @@ Parameters: @@ -465,7 +491,7 @@- inst – data point -
- fuzzySets – dict of fuzzy sets +
- fuzzy_sets – a dictionary where the key is the fuzzy set name and the value is the fuzzy set object. +
- ordered_sets – a list with the fuzzy sets names ordered by their centroids.
- alpha_cut – Minimal membership to be considered on fuzzyfication process
-
-
pyFTS.common.FuzzySet.
get_maximum_membership_fuzzyset
(inst, fuzzySets, ordered_sets=None)[source]¶
+ Fuzzify a data point, returning the fuzzy set with maximum membership value
@@ -473,7 +499,8 @@ @@ -486,7 +513,7 @@Parameters: - inst – data point -
- fuzzySets – dict of fuzzy sets +
- fuzzy_sets – a dictionary where the key is the fuzzy set name and the value is the fuzzy set object. +
- ordered_sets – a list with the fuzzy sets names ordered by their centroids.
-
-
pyFTS.common.FuzzySet.
get_maximum_membership_fuzzyset_index
(inst, fuzzySets)[source]¶
+ Fuzzify a data point, returning the fuzzy set with maximum membership value
@@ -494,7 +521,7 @@ @@ -507,13 +534,23 @@Parameters: - inst – data point -
- fuzzySets – dict of fuzzy sets +
- fuzzy_sets – dict of fuzzy sets
-
-
pyFTS.common.FuzzySet.
grant_bounds
(data, sets, ordered_sets)[source]¶
+
pyFTS.common.FuzzySet.
grant_bounds
(data, fuzzy_sets, ordered_sets)[source]¶-
-
pyFTS.common.FuzzySet.
set_ordered
(fuzzySets)[source]¶
+ Order a fuzzy set list by their centroids
++
+ + + +Parameters: fuzzy_sets – a dictionary where the key is the fuzzy set name and the value is the fuzzy set object. + + +Returns: a list with the fuzzy sets names ordered by their centroids. +
pyFTS.common.FuzzySet.
set_ordered
(fuzzy_sets)[source]¶
pyFTS.common.FuzzySet.
get_maximum_membership_fuzzyset_index
(inst, fuzzy_sets)[source]¶-
+
-
+
pyFTS.common.Membership.
singleton
(x, parameters)[source]¶
+ Singleton membership function, a single value fuzzy function
++
++ + + + +Parameters: +-
+
- x – +
- parameters – a list with one real value +
:returns
+
-
pyFTS.common.Membership.
trapmf
(x, parameters)[source]¶
diff --git a/docs/build/html/pyFTS.data.html b/docs/build/html/pyFTS.data.html
index f302829..d9de2ff 100644
--- a/docs/build/html/pyFTS.data.html
+++ b/docs/build/html/pyFTS.data.html
@@ -194,7 +194,7 @@ If the file don’t already exists, it will be downloaded and decompressed.
-
-
pyFTS.data.Bitcoin.
get_data
(field='avg')[source]¶
+ Get the univariate time series data.
@@ -230,7 +230,7 @@ If the file don’t already exists, it will be downloaded and decompressed. Source: https://finance.yahoo.com/quote/%5EGSPC/history?p=%5EGSPC
-
-
pyFTS.data.DowJones.
get_data
(field='avg')[source]¶
+ Get the univariate time series data.
@@ -289,7 +289,7 @@ If the file don’t already exists, it will be downloaded and decompressed. Source: https://finance.yahoo.com/quote/ETH-USD?p=ETH-USD
-
-
pyFTS.data.Ethereum.
get_data
(field='avg')[source]¶
+ Get the univariate time series data.
diff --git a/docs/build/html/quickstart.html b/docs/build/html/quickstart.html index 2b730fc..3c7255e 100644 --- a/docs/build/html/quickstart.html +++ b/docs/build/html/quickstart.html @@ -18,7 +18,7 @@ - +
pyFTS.data.Ethereum.
get_data
(field='AVG')[source]¶-
-
pyFTS.data.DowJones.
get_data
(field='AVG')[source]¶-
-
Source: https://finance.yahoo.com/quote/BTC-USD?p=BTC-USD
pyFTS.data.Bitcoin.
get_data
(field='AVG')[source]¶
pyFTS.common.FuzzySet.
get_maximum_membership_fuzzyset
(inst, fuzzy_sets, ordered_sets=None)[source]¶
pyFTS.common.FuzzySet.
get_fuzzysets
(inst, fuzzy_sets, ordered_sets=None, alpha_cut=0.0)[source]¶
pyFTS.common.FuzzySet.
fuzzyfy_instances
(data, fuzzy_sets, ordered_sets=None)[source]¶
pyFTS.common.FuzzySet.
check_bounds
(data, fuzzy_sets, ordered_sets)[source]¶
pyFTS.common.FuzzySet.
check_bounds_index
(data, fuzzy_sets, ordered_sets)[source]¶
-
+
pyFTS.common.FuzzySet.
fuzzyfy_instance
(inst, fuzzy_sets, ordered_sets=None)[source]¶