From d05ed762fedb34d16dbbb1b93737e45a150d7c32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=C3=B4nio=20C=C3=A2ndido=20de=20Lima=20e=20Silva?= Date: Wed, 27 Feb 2019 14:44:58 -0300 Subject: [PATCH] Update IncrementalEnsemble.py --- pyFTS/models/incremental/IncrementalEnsemble.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyFTS/models/incremental/IncrementalEnsemble.py b/pyFTS/models/incremental/IncrementalEnsemble.py index 6985f84..4eee2df 100644 --- a/pyFTS/models/incremental/IncrementalEnsemble.py +++ b/pyFTS/models/incremental/IncrementalEnsemble.py @@ -72,7 +72,7 @@ class IncrementalEnsembleFTS(ensemble.EnsembleFTS): if k >= self.window_length: data_window.pop(0) - if k % self.batch_size == 0 and k >= self.window_length: + if k % self.batch_size == 0 and k - self.max_lag >= self.window_length: self.train(data_window, **kwargs) sample = data[k - self.max_lag: k]