View source: R/FcOptimizeAdditiveDecompositionModel.R
FcOptimizeAdditiveDecompositionModel | R Documentation |
opm
The optimization is based on L-BFGS-B
for the three parameters alpha beta and gamma of FcAdditiveDecompositionModel
.
FcOptimizeAdditiveDecompositionModel(Data, SeasonalLength = 52,
Horizon = 12, Iterations = 100, PlotIt = TRUE)
Data |
[1:n] numerical vector |
SeasonalLength |
see |
Horizon |
horizon of forecast, autmaticall splits |
Iterations |
number of iteratons for the |
PlotIt |
If TRUE, time series and forecast is ploted. |
Limited-memory BFGS is an optimization algorithm in the family of quasi-Newton methods that approximates the Broyden–Fletcher–Goldfarb–Shanno (BFGS) algorithm using a limited amount of computer memory. The object function is defined by RootDeviance
where MRD
is minimized and the initial choice of AlphaBetaGamma
is random. By selecting Iterations
higher than 1 a simulated annealing procedure is used.
After this procudure the optimized parameters AlphaBetaGamma
can be used in FcAdditiveDecompositionModel
to forecast the future.
Forecast |
[1:k] forecast, where |
Accurary |
against the test set, see |
Train |
[1:m] trainings data with |
ForecastTrain |
[1:m] forecast fo trainings data |
Test |
[1:k] testset |
AlphaBetaGamma |
parameters of |
The optimization of opm
contrary to parameter settings sometimes tries values above 1 or less than zero. This generates warnings, but is catched in FcAdditiveDecompositionModel
.
Michael Thrun
Nash JC, and Varadhan R (2011). Unifying Optimization Algorithms to Aid Software System Users: optimx for R., Journal of Statistical Software, 43(9), 1-14., URL http://www.jstatsoft.org/v43/i09/.
opm
#ToDo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.