Learn R Programming

kernDeepStackNet (version 2.0.2)

predict.KDSNensemble: Predict kernel deep stacking networks ensembles (experimental)

Description

Predicts new data with a given kernel deep stacking network ensemble. All levels are applied successively with fixed weights to reproduce results. Note that this function is still experimental.

Usage

# S3 method for KDSNensemble
predict(object, newx, …)

Arguments

object

Object of class KDSNensemble. This object is generated with the function fitEnsembleKDSN.

newx

New data design matrix, for which predictions are needed. Variables must be in the same order, as the original training data.

Further arguments to predict function.

Value

A prediction matrix will be returned. Each row corresponds to one observation and each column is another KDSN ensemble.

Details

The data is put through all specified layers of the kernel deep stacking network. The weights are not random, but fixed at the values generated by the fitting process. Examples are given in the help page of fitEnsembleKDSN.

See Also

fitKDSN, fitEnsembleKDSN