From 6cc88f629231195e4b6e0e440580b7c5a73dbf78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=C3=B4nio=20C=C3=A2ndido=20de=20Lima=20e=20Silva?= Date: Thu, 28 Jun 2018 14:34:58 -0300 Subject: [PATCH] Bugfix in Measures.get_point_statistics for multivariate models --- pyFTS/benchmarks/Measures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyFTS/benchmarks/Measures.py b/pyFTS/benchmarks/Measures.py index b07fd47..72bf9a7 100644 --- a/pyFTS/benchmarks/Measures.py +++ b/pyFTS/benchmarks/Measures.py @@ -325,7 +325,7 @@ def get_point_statistics(data, model, **kwargs): forecasts = model.predict(ndata, **kwargs) if model.is_multivariate: - ndata = ndata[model1.target_variable.data_label].values + ndata = ndata[model.target_variable.data_label].values if not isinstance(forecasts, (list, np.ndarray)): forecasts = [forecasts]