From ccefdd55dd5e3c4628819c6f0ff9622bcdf9ef87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=C3=B4nio=20C=C3=A2ndido=20de=20Lima=20e=20Silva?= Date: Thu, 15 Sep 2022 09:25:46 -0300 Subject: [PATCH 1/3] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 6c72c2e..36dd682 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ This project is continously under improvement and contributors are well come. ## How to reference pyFTS? [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.597359.svg)](https://doi.org/10.5281/zenodo.597359) +[![Citation Badge](https://api.juleskreuer.eu/citation-badge.php?doi=10.5281/zenodo.597359)](https://juleskreuer.eu/projekte/citation-badge/) Silva, P. C. L. et al. *pyFTS: Fuzzy Time Series for Python.* Belo Horizonte. 2018. DOI: 10.5281/zenodo.597359. Url: From a027c89d299f5d88df3c52f3b9db607813b5b91c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=C3=B4nio=20C=C3=A2ndido=20de=20Lima=20e=20Silva?= Date: Thu, 15 Sep 2022 09:26:15 -0300 Subject: [PATCH 2/3] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 36dd682..6c72c2e 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,6 @@ This project is continously under improvement and contributors are well come. ## How to reference pyFTS? [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.597359.svg)](https://doi.org/10.5281/zenodo.597359) -[![Citation Badge](https://api.juleskreuer.eu/citation-badge.php?doi=10.5281/zenodo.597359)](https://juleskreuer.eu/projekte/citation-badge/) Silva, P. C. L. et al. *pyFTS: Fuzzy Time Series for Python.* Belo Horizonte. 2018. DOI: 10.5281/zenodo.597359. Url: From 6a6eb77d0df983966ae8b29a307e9992c4162a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=C3=B4nio=20C=C3=A2ndido=20de=20Lima=20e=20Silva?= Date: Mon, 24 Oct 2022 15:19:37 -0300 Subject: [PATCH 3/3] Bugfix: Wrong number of partitions been generated by GridPartitioner --- pyFTS/partitioners/Grid.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pyFTS/partitioners/Grid.py b/pyFTS/partitioners/Grid.py index 2b1b14f..ee18bb6 100644 --- a/pyFTS/partitioners/Grid.py +++ b/pyFTS/partitioners/Grid.py @@ -22,11 +22,12 @@ class GridPartitioner(partitioner.Partitioner): kwargs = {'type': self.type, 'variable': self.variable} - dlen = self.max - self.min - partlen = dlen / self.partitions + #dlen = self.max - self.min + #partlen = dlen / self.partitions count = 0 - for c in np.arange(self.min, self.max, partlen): + centers, partlen = np.linspace(self.min, self.max, self.partitions, retstep=True) + for c in centers: _name = self.get_name(count) if self.membership_function == Membership.trimf: sets[_name] = FuzzySet.FuzzySet(_name, Membership.trimf, [c - partlen, c, c + partlen],c,**kwargs)