1 context("Check that forecasters behave as expected")
3 test_that("Average+Zero method behave as expected",
5 ts_data = system.file("testdata","ts",package="talweg")
6 exo_data = system.file("testdata","exo",package="talweg")
8 data0 = getData(ts_data, exo_data, input_tz="GMT", date_format="%Y-%m-%d %H:%M",
9 working_tz="GMT", predict_at=0, limit=Inf)
10 #TODO: with and without shift at origin (so series values at least forst ones are required)
13 pred0 = getForecast(.......)
15 for (i in seq_along(indices))
17 expect_identical(....)
20 data13 = getData(ts_data, exo_data, input_tz="GMT", date_format="%Y-%m-%d %H:%M",
21 working_tz="GMT", predict_at=13, limit=Inf)
22 #Attention: jours deviennent 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 (14h-->0h puis 1h-->13h)
25 test_that("Persistence+Zero method behave as expected",
29 test_that("Neighbors+Zero method behave as expected",
33 test_that("Neighbors+Neighbors method behave as expected",