X-Git-Url: https://git.auder.net/?p=talweg.git;a=blobdiff_plain;f=pkg%2FR%2FcomputeError.R;h=c3bc4f381da34112eca28f339db3093582ed9d67;hp=0b1771f2e1769b16603c9837291f5b916facf881;hb=1e8327df4e8abce5c23808be4f98037635bb2714;hpb=d2ab47a744d8fb29c03a76a7ca2368dae53f9a57 diff --git a/pkg/R/computeError.R b/pkg/R/computeError.R index 0b1771f..c3bc4f3 100644 --- a/pkg/R/computeError.R +++ b/pkg/R/computeError.R @@ -16,8 +16,8 @@ computeError = function(data, pred, predict_from, horizon=length(data$getSerie(1))) { L = pred$getSize() - mape_day = rep(0, horizon) - abs_day = rep(0, horizon) + mape_day = rep(0, horizon-predict_from+1) + abs_day = rep(0, horizon-predict_from+1) mape_indices = rep(NA, L) abs_indices = rep(NA, L)