{ "info": { "author": "Petronio Candido L. e Silva", "author_email": "petronio.candido@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Science/Research", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering" ], "description": "# pyFTS - Fuzzy Time Series for Python\n\n[![GPLv3 license](https://img.shields.io/badge/License-GPLv3-blue.svg)](http://perso.crans.org/besson/LICENSE.html)\n[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)\n[![PyPI pyversions](https://img.shields.io/pypi/pyversions/ansicolortags.svg)](https://pypi.python.org/pypi/pyFTS/)\n[![Open Source Love png2](https://badges.frapsoft.com/os/v2/open-source.png?v=103)](https://github.com/ellerbrock/open-source-badges/)\n\n## What is pyFTS Library?\n\nThis 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 for statistic laymans to experts.\n\nThis project is continously under improvement and contributors are well come.\n\n## How to reference pyFTS?\n\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.597359.svg)](https://doi.org/10.5281/zenodo.597359)\n\n Silva, P. C. L. et al. *pyFTS: Fuzzy Time Series for Python.* Belo Horizonte. 2018. DOI: 10.5281/zenodo.597359. Url: \n\n## How to install pyFTS?\n\nFirst of all pyFTS was developed and tested with Python 3.6. To install pyFTS using pip tool\n\n```\npip install -U pyFTS\n```\n\nOu pull directly from the GitHub repo:\n\n```\npip install -U git+https://github.com/PYFTS/pyFTS\n```\n\n## What are Fuzzy Time Series (FTS)?\nFuzzy Time Series (FTS) are non parametric methods for time series forecasting based on Fuzzy Theory. The original method was proposed by [1] and improved later by many researchers. The general approach of the FTS methods, based on [2] is listed below:\n\n1. **Data preprocessing**: Data transformation functions contained at [pyFTS.common.Transformations](https://github.com/PYFTS/pyFTS/blob/master/pyFTS/common/Transformations.py), like differentiation, Box-Cox, scaling and normalization.\n\n2. **Universe of Discourse Partitioning**: This is the most important step. Here, the range of values of the numerical time series *Y(t)* will be splited in overlapped intervals and for each interval will be created a Fuzzy Set. This step is performed by pyFTS.partition module and its classes (for instance GridPartitioner, EntropyPartitioner, etc). The main parameters are:\n - the number of intervals\n - which fuzzy membership function (on [pyFTS.common.Membership](https://github.com/PYFTS/pyFTS/blob/master/pyFTS/common/Membership.py))\n - partition scheme ([GridPartitioner](https://github.com/PYFTS/pyFTS/blob/master/pyFTS/partitioners/Grid.py), [EntropyPartitioner](https://github.com/PYFTS/pyFTS/blob/master/pyFTS/partitioners/Entropy.py)[3], [FCMPartitioner](https://github.com/PYFTS/pyFTS/blob/master/pyFTS/partitioners/FCM.py), [CMeansPartitioner](https://github.com/PYFTS/pyFTS/blob/master/pyFTS/partitioners/CMeans.py), [HuarngPartitioner](https://github.com/PYFTS/pyFTS/blob/master/pyFTS/partitioners/Huarng.py)[4])\n\n Check out the jupyter notebook on [notebooks/Partitioners.ipynb](https://github.com/PYFTS/notebooks/blob/master/Partitioners.ipynb) for sample codes.\n\n3. **Data Fuzzyfication**: Each data point of the numerical time series *Y(t)* will be translated to a fuzzy representation (usually one or more fuzzy sets), and then a fuzzy time series *F(t)* is created.\n\n4. **Generation of Fuzzy Rules**: In this step the temporal transition rules are created. These rules depends on the method and their characteristics:\n- *order*: the number of time lags used on forecasting\n- *weights*: the weighted models introduce weights on fuzzy rules for smoothing [5],[6],[7]\n- *seasonality*: seasonality models depends [8]\n- *steps ahead*: the number of steps ahed to predict. Almost all standard methods are based on one-step-ahead forecasting\n- *forecasting type*: Almost all standard methods are point-based, but pyFTS also provides intervalar and probabilistic forecasting methods.\n\n5. **Forecasting**: The forecasting step takes a sample (with minimum length equal to the model's order) and generate a fuzzy outputs (fuzzy set(s)) for the next time ahead. \n\n6. **Defuzzyfication**: This step transform the fuzzy forecast into a real number.\n\n7. **Data postprocessing**: The inverse operations of step 1.\n\n## Usage examples\n\nThere is nothing better than good code examples to start. [Then check out the demo Jupyter Notebooks of the implemented method os pyFTS!](https://github.com/PYFTS/notebooks).\n\nA Google Colab example can also be found [here](https://drive.google.com/file/d/1zRBCHXOawwgmzjEoKBgmvBqkIrKxuaz9/view?usp=sharing).\n\n## MINDS - Machine Intelligence And Data Science Lab\n\nThis tool is result of collective effort of [MINDS Lab](http://www.minds.eng.ufmg.br/), headed by Prof. Frederico Gadelha Guimar\u00e3es. Some of research on FTS which was developed under pyFTS:\n\n1. Alves, M. A.; Silva, P. C. L.; Severiano, C. A. J.; Vieira, G. L.; Guimaraes, F. G.; Sadaei, H. J. An extension of nonstationary fuzzy sets to heteroskedastic fuzzy time series. 26th European Symposium on Artificial Neural Networks, Computational Intelligence and Machine Learning, 2018.\n2. Silva, P. C. L., Alves, M. A., Alberto, C., Junior, S., Vieira, G. L., Guimaraes, F. G., & Sadaei, H. J. Probabilistic Forecasting with Seasonal Ensemble Fuzzy Time-Series. XIII Brazilian Congress on Computational Intelligence, 2017.\n3. Severiano, S. A. Jr; Silva, P. C. L.; Sadaei, H. J.; Guimar\u00e3es, F. G. Very Short-term Solar Forecasting using Fuzzy Time Series. 2017 IEEE International Conference on Fuzzy Systems. DOI10.1109/FUZZ-IEEE.2017.8015732\n4. SILVA, Petr\u00f4nio CL; SADAEI, Hossein Javedani; GUIMAR\u00c3ES, Frederico Gadelha. Interval Forecasting with Fuzzy Time Series. In: Computational Intelligence (SSCI), 2016 IEEE Symposium Series on. IEEE, 2016. p. 1-8.\n\n\n## References\n\n1. Q. Song and B. S. Chissom, \u201cFuzzy time series and its models,\u201d Fuzzy Sets Syst., vol. 54, no. 3, pp. 269\u2013277, 1993.\n2. S.-M. Chen, \u201cForecasting enrollments based on fuzzy time series,\u201d Fuzzy Sets Syst., vol. 81, no. 3, pp. 311\u2013319, 1996.\n3. C. H. Cheng, R. J. Chang, and C. A. Yeh, \u201cEntropy-based and trapezoidal fuzzification-based fuzzy time series approach for forecasting IT project cost\u201d. Technol. Forecast. Social Change, vol. 73, no. 5, pp. 524\u2013542, Jun. 2006.\n4. K. H. Huarng, \u201cEffective lengths of intervals to improve forecasting in fuzzy time series\u201d. Fuzzy Sets Syst., vol. 123, no. 3, pp. 387\u2013394, Nov. 2001.\n5. H.-K. Yu, \u201cWeighted fuzzy time series models for TAIEX forecasting\u201d. Phys. A Stat. Mech. its Appl., vol. 349, no. 3, pp. 609\u2013624, 2005.\n6. R. Efendi, Z. Ismail, and M. M. Deris, \u201cImproved weight Fuzzy Time Series as used in the exchange rates forecasting of US Dollar to Ringgit Malaysia,\u201d Int. J. Comput. Intell. Appl., vol. 12, no. 1, p. 1350005, 2013.\n7. H. J. Sadaei, R. Enayatifar, A. H. Abdullah, and A. Gani, \u201cShort-term load forecasting using a hybrid model with a refined exponentially weighted fuzzy time series and an improved harmony search,\u201d Int. J. Electr. Power Energy Syst., vol. 62, no. from 2005, pp. 118\u2013129, 2014.\n8. C.-H. Cheng, Y.-S. Chen, and Y.-L. Wu, \u201cForecasting innovation diffusion of products using trend-weighted fuzzy time-series model,\u201d Expert Syst. Appl., vol. 36, no. 2, pp. 1826\u20131832, 2009.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "https://github.com/PYFTS/pyFTS/archive/pkg1.6.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://pyfts.github.io/pyFTS/", "keywords": "forecasting,fuzzy time series,fuzzy,time series forecasting", "license": "", "maintainer": "", "maintainer_email": "", "name": "pyFTS", "package_url": "https://pypi.org/project/pyFTS/", "platform": "", "project_url": "https://pypi.org/project/pyFTS/", "project_urls": { "Download": "https://github.com/PYFTS/pyFTS/archive/pkg1.6.tar.gz", "Homepage": "https://pyfts.github.io/pyFTS/" }, "release_url": "https://pypi.org/project/pyFTS/1.6/", "requires_dist": null, "requires_python": "", "summary": "Fuzzy Time Series for Python", "version": "1.6" }, "last_serial": 5239830, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "31e2843f9a9aa0d27cf175975db4b8ca", "sha256": "00df1a96d3bb25a707d10ec06f1a41cc5b35f6ea0756f627a1902f8f1a2f4b2c" }, "downloads": -1, "filename": "pyFTS-0.1.tar.gz", "has_sig": false, "md5_digest": "31e2843f9a9aa0d27cf175975db4b8ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9795, "upload_time": "2017-07-10T12:24:15", "url": "https://files.pythonhosted.org/packages/01/23/f2b886a6dae04bd03d6975f6d909fb68fe8616331d190346627b637ceba1/pyFTS-0.1.tar.gz" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "c6c1e7a1363056e76b3ed0a5331ae6f0", "sha256": "5b4cfe50fb06eab153742d0a9cdbd015195362c500bf366957da285bf80bcd62" }, "downloads": -1, "filename": "pyFTS-1.2.2.tar.gz", "has_sig": false, "md5_digest": "c6c1e7a1363056e76b3ed0a5331ae6f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 70591, "upload_time": "2018-03-07T15:45:07", "url": "https://files.pythonhosted.org/packages/13/e5/ae7e73fb00cdfea85786d2a760576745c423f0eeb2ee8efdeace18fe9461/pyFTS-1.2.2.tar.gz" } ], "1.6": [ { "comment_text": "", "digests": { "md5": "a5e51e540691d5f46e91a5b1d4dee670", "sha256": "0a5ff3df25b620bac733a251a3170680d49820e4214865cdb5bc926583d0fbe5" }, "downloads": -1, "filename": "pyFTS-1.6.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "a5e51e540691d5f46e91a5b1d4dee670", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 299056, "upload_time": "2019-05-07T20:08:06", "url": "https://files.pythonhosted.org/packages/b9/03/7390f7eaa6a401d3691a2f26300acdd3165769c6a582a44990d8b133a50e/pyFTS-1.6.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "a695e689dd7fd6346b3442029e5c10c5", "sha256": "7f87051ca415fabbe3859eb6a7160c089338ed754e00ff81271098005fea8a63" }, "downloads": -1, "filename": "pyFTS-1.6-py3.6.egg", "has_sig": false, "md5_digest": "a695e689dd7fd6346b3442029e5c10c5", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 424163, "upload_time": "2019-05-07T20:08:12", "url": "https://files.pythonhosted.org/packages/4b/0a/1ed6dda480d364ba5338a6df2d3504f7a235372d0412e98ed4f52b11e295/pyFTS-1.6-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "94aa466547f139569ec6b1fec681502e", "sha256": "5a20673d4d5cd3bdcec9a57d61947d1dd147b8c4c53bb457fe6beccbfa9ef55a" }, "downloads": -1, "filename": "pyFTS-1.6-py3-none-any.whl", "has_sig": false, "md5_digest": "94aa466547f139569ec6b1fec681502e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 175070, "upload_time": "2019-05-07T20:08:02", "url": "https://files.pythonhosted.org/packages/41/3a/c5ef1879b33fdf07dc5678e8484d9ea637924afd6c66f14d65001cb1cddf/pyFTS-1.6-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a5e51e540691d5f46e91a5b1d4dee670", "sha256": "0a5ff3df25b620bac733a251a3170680d49820e4214865cdb5bc926583d0fbe5" }, "downloads": -1, "filename": "pyFTS-1.6.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "a5e51e540691d5f46e91a5b1d4dee670", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 299056, "upload_time": "2019-05-07T20:08:06", "url": "https://files.pythonhosted.org/packages/b9/03/7390f7eaa6a401d3691a2f26300acdd3165769c6a582a44990d8b133a50e/pyFTS-1.6.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "a695e689dd7fd6346b3442029e5c10c5", "sha256": "7f87051ca415fabbe3859eb6a7160c089338ed754e00ff81271098005fea8a63" }, "downloads": -1, "filename": "pyFTS-1.6-py3.6.egg", "has_sig": false, "md5_digest": "a695e689dd7fd6346b3442029e5c10c5", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 424163, "upload_time": "2019-05-07T20:08:12", "url": "https://files.pythonhosted.org/packages/4b/0a/1ed6dda480d364ba5338a6df2d3504f7a235372d0412e98ed4f52b11e295/pyFTS-1.6-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "94aa466547f139569ec6b1fec681502e", "sha256": "5a20673d4d5cd3bdcec9a57d61947d1dd147b8c4c53bb457fe6beccbfa9ef55a" }, "downloads": -1, "filename": "pyFTS-1.6-py3-none-any.whl", "has_sig": false, "md5_digest": "94aa466547f139569ec6b1fec681502e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 175070, "upload_time": "2019-05-07T20:08:02", "url": "https://files.pythonhosted.org/packages/41/3a/c5ef1879b33fdf07dc5678e8484d9ea637924afd6c66f14d65001cb1cddf/pyFTS-1.6-py3-none-any.whl" } ] }