predict.nnet.prmdt: predict.nnet.prmdt

View source: R/predict.R

predict.nnet.prmdtR Documentation

predict.nnet.prmdt

Description

Return prediction for a nnet model.

Usage

## S3 method for class 'nnet.prmdt'
predict(object, newdata, type = "class", ...)

Arguments

object

a nnet model object for which prediction is desired.

newdata

an optional data frame in which to look for variables with which to predict.

type

type of prediction 'prob' or 'class' (default).

...

additional arguments affecting the predictions produced.

Value

a vector or matrix of predictions for nnet model.


PROMiDAT/trainR documentation built on Sept. 13, 2022, 7:26 a.m.