horizon = as.integer(horizon)[1]
if (horizon<=predict_from || horizon>length(data$getSerie(1)))
stop("Horizon in [predict_from+1,24] (hours)")
horizon = as.integer(horizon)[1]
if (horizon<=predict_from || horizon>length(data$getSerie(1)))
stop("Horizon in [predict_from+1,24] (hours)")