From fd9b823d8e13d497c577d002e0e42e3477f5a083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=C3=B4nio=20C=C3=A2ndido=20de=20Lima=20e=20Silva?= Date: Thu, 5 Jul 2018 22:00:42 -0300 Subject: [PATCH] Bugfix in hwang --- pyFTS/models/hwang.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyFTS/models/hwang.py b/pyFTS/models/hwang.py index 6f862d7..dbfb050 100644 --- a/pyFTS/models/hwang.py +++ b/pyFTS/models/hwang.py @@ -19,6 +19,10 @@ class HighOrderFTS(fts.FTS): self.detail = "Hwang" def forecast(self, ndata, **kwargs): + + if 'order' in kwargs: + self.order = kwargs.get('order',self.order) + self.max_lag = self.order if self.sets == None: self.sets = self.partitioner.sets @@ -57,4 +61,4 @@ class HighOrderFTS(fts.FTS): return ret def train(self, data, **kwargs): - pass \ No newline at end of file + pass