From d181493c38f683097bcd452d0d7b9f08df3aea26 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:15:30 -0300 Subject: [PATCH] Bugfix in Measures.get_point_statistics for multivariate support --- pyFTS/benchmarks/Measures.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyFTS/benchmarks/Measures.py b/pyFTS/benchmarks/Measures.py index d094e15..6aadfc5 100644 --- a/pyFTS/benchmarks/Measures.py +++ b/pyFTS/benchmarks/Measures.py @@ -312,6 +312,10 @@ def get_point_statistics(data, model, **kwargs): if indexer is not None: ndata = np.array(indexer.get_data(data)) + elif model.is_multivariate: + if not isinstance(data, pd.DataFrame): + raise ValueError("Multivariate data must be a Pandas DataFrame!") + ndata = data else: ndata = np.array(data)