Bugfix in hwang

This commit is contained in:
Petrônio Cândido de Lima e Silva 2018-07-05 22:00:42 -03:00 committed by GitHub
parent 043c28d480
commit fd9b823d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
pass