From b359a14d07452aea2ee2a396161c37c9020e4276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=C3=B4nio=20C=C3=A2ndido=20de=20Lima=20e=20Silva?= Date: Wed, 27 Jun 2018 14:47:45 -0300 Subject: [PATCH] Changing from snaps to mape --- pyFTS/benchmarks/Measures.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyFTS/benchmarks/Measures.py b/pyFTS/benchmarks/Measures.py index 00f8e4e..d094e15 100644 --- a/pyFTS/benchmarks/Measures.py +++ b/pyFTS/benchmarks/Measures.py @@ -326,7 +326,7 @@ def get_point_statistics(data, model, **kwargs): nforecasts = np.array(forecasts[:-1]) ret.append(np.round(rmse(ndata[model.order:], nforecasts), 2)) - ret.append(np.round(smape(ndata[model.order:], nforecasts), 2)) + ret.append(np.round(mape(ndata[model.order:], nforecasts), 2)) ret.append(np.round(UStatistic(ndata[model.order:], nforecasts), 2)) else: steps_ahead_sampler = kwargs.get('steps_ahead_sampler', 1) @@ -338,7 +338,7 @@ def get_point_statistics(data, model, **kwargs): start = model.order + steps_ahead -1 ret.append(np.round(rmse(ndata[start:-1:steps_ahead_sampler], nforecasts), 2)) - ret.append(np.round(smape(ndata[start:-1:steps_ahead_sampler], nforecasts), 2)) + ret.append(np.round(mape(ndata[start:-1:steps_ahead_sampler], nforecasts), 2)) ret.append(np.round(UStatistic(ndata[start:-1:steps_ahead_sampler], nforecasts), 2)) return ret