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.
# S3 method for KDSNensemble
predict(object, newx, …)
Object of class KDSNensemble
. This object is generated with the function fitEnsembleKDSN
.
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.
A prediction matrix will be returned. Each row corresponds to one observation and each column is another KDSN ensemble.
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
.