predict.ada.prmdt: predict.ada.prmdt

View source: R/predict.R

predict.ada.prmdtR Documentation

predict.ada.prmdt

Description

Return prediction for a ada model.

Usage

## S3 method for class 'ada.prmdt'
predict(object, newdata, type = "class", n.iter = NULL, ...)

Arguments

object

a ada 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).

n.iter

number of iterations to consider for the prediction. By default this is iter from the ada call (n.iter< iter).

...

additional arguments affecting the predictions produced.

Value

a vector or matrix of predictions for ada model.


PROMiDAT/traineR documentation built on Nov. 13, 2023, 3:21 a.m.