| hanaml.AutoExponentialSmoothing {hana.ml.r} | R Documentation |
hanaml.AutoExpSmoothing is a R wrapper for PAL Auto Exp Smoothing algorithm.
hanaml.AutoExponentialSmoothing(conn.context,
data,
key = NULL,
endog = NULL,
model.selection = NULL,
forecast.model.name = NULL,
optimizer.time.budget = NULL,
max.iter = NULL,
optimizer.random.seed = NULL,
thread.ratio = NULL,
alpha = NULL,
beta = NULL,
gamma = NULL,
phi = NULL,
forecast.num = NULL,
seasonal.period = NULL,
seasonal = NULL,
initial.method = NULL,
training.ratio = NULL,
damped = NULL,
accuracy.measure = NULL,
seasonality.criterion = NULL,
trend.test.method = NULL,
trend.test.alpha = NULL,
alpha.min = NULL,
beta.min = NULL,
gamma.min = NULL,
phi.min = NULL,
alpha.max = NULL,
beta.max = NULL,
gamma.max = NULL,
phi.max = NULL,
prediction.confidence.1 = NULL,
prediction.confidence.2 = NULL,
level.start = NULL,
trend.start = NULL,
season.start = NULL)
conn.context |
|
data |
|
key |
|
endog |
|
model.selection |
|
forecast.model.name |
|
optimizer.time.budget |
|
max.iter |
|
optimizer.random.seed |
|
thread.ratio |
|
alpha |
|
beta |
|
gamma |
|
phi |
|
forecast.num |
|
seasonal.period |
|
seasonal |
|
initial.method |
|
training.ratio |
|
damped |
|
accuracy.measure |
|
seasonality.criterion |
|
trend.test.method |
|
trend.test.alpha |
|
alpha.min |
|
beta.min |
|
gamma.min |
|
phi.min |
|
alpha.max |
|
beta.max |
|
gamma.max |
|
phi.max |
|
prediction.confidence.1 |
|
prediction.confidence.2 |
|
level.start |
|
trend.start |
|
season.start |
|
Auto exponential smoothing (previously named forecast smoothing) is used to calculate optimal parameters of a set of smoothing functions in PAL, including Single Exponential Smoothing, Double Exponential Smoothing, and Triple Exponential Smoothing.
Return a list of two DataFrame:
DataFrame 1
Forecast values.
DataFrame 2
Statistics analysis content.
## Not run:
Input DataFrame data:
> data$Collect()
ID RAWDATA
1 1 362
2 2 385
3 3 432
4 4 341
......
22 22 725
23 23 854
24 24 661
aesm <- hanaml.AutoExponentialSmoothing(conn.context = conn,
data = data,
forecast.model.name = 'TESM',
alpha=0.4,
gamma=0.4,
forecast.num=3,
seasonal=0,
initial.method=1,
training.ratio = 0.75)
Output:
> aesm[[2]]$Collect()
STAT_NAME STAT_VALUE
1 MSE 467.811415778471
2 NUMBER_OF_ITERATIONS 110
3 SA_NUMBER_OF_ITERATIONS 100
4 NM_NUMBER_OF_ITERATIONS 10
5 NM_EXECUTION_TIME 0.000171
6 SA_STOP_COND MAX_ITERATION
7 NM_STOP_COND ERROR_DIFFERENCE
8 ALPHA 0.4
9 BETA 0.4
10 GAMMA 0.4
11 CYCLE 4
12 NUMBER_OF_TRAINING 18
13 NUMBER_OF_TESTING 6
14 TEST_MSE 6353.632907713298
## End(Not run)