forecast.mlp: Forecast using MLP neural network.

Description Usage Arguments Value Author(s) See Also Examples

Description

Create forecasts using MLP neural networks.

Usage

1
2
## S3 method for class 'mlp'
forecast(object, h = NULL, y = NULL, xreg = NULL, ...)

Arguments

object

MLP network object, produced using mlp.

h

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

y

Optionally forecast using different data than what the network was trained on. Expected to create havoc and do really bad things!

xreg

Exogenous regressors. Each column is a different regressor and the sample size must be at least as long as the target in-sample set plus the forecast horizon, but can be longer. Set it to NULL if no xreg inputs are used.

...

Unused argument.

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:

Author(s)

Nikolaos Kourentzes, nikolaos@kourentzes.com

See Also

mlp, mlp.thief, elm.

Examples

1
2
3
4
5
6
7
## Not run: 
 fit <- mlp(AirPassengers)
 plot(fit)
 frc <- forecast(fit,h=36)
 plot(frc)

## End(Not run)

nnfor documentation built on May 2, 2019, 10:39 a.m.