nnfor (version 0.9.2)

mlp.thief: MLP network for THieF.

Description

Function for MLP forecasting with Temporal Hierarchies.

Usage

mlp.thief(y, h = NULL, ...)

Arguments

y

Input time series. Can be ts or msts object.

h

Forecast horizon. If NULL then h is set to match frequency of time series.

...

Additional arguments passed to mlp.

Value

An object of classes "forecast.net" and "forecast". The function plot produces a plot of the forecasts. An object of class "forecast.net" is a list containing the following elements:

  • method - The name of the forecasting method as a character string

  • mean - Point forecasts as a time series

  • all.mean - An array h x reps of all ensemble members forecasts, where reps are the number of ensemble members.

  • x - The original time series (either fit used to create the network.

  • fitted - Fitted values. Any values not fitted for the initial period of the time series are imputted with NA.

  • residuals - Residuals from the fitted network.

References

See Also

mlp, elm.thief.

Examples

Run this code
# NOT RUN {
  library(thief)
  frc <- thief(AirPassengers,forecastfunction=mlp.thief)
  plot(frc)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab