predict.mlkit.class.fit: Model Predictions for Classifier Models

Description Usage Arguments Value

View source: R/predict.mlkit.class.fit.R

Description

Custom implementation for prediction using model fits obtained resulting from multiclass classification models in the mlkit package.

Usage

1
2
## S3 method for class 'mlkit.class.fit'
predict(object, newdata = NULL, ...)

Arguments

object

mlkit.class.fit object generated by a call to a classifier method in the mlkit package that is used for prediction.

newdata

optional matrix of explanatory variables to use in prediction. Default is NULL in which case the in-sample predictions are returned.

...

additional arguments affecting the predictions produced.

Value

Atomic vector containing predictions based on the given model and explanatory variables.


Accelerytics/mlkit documentation built on Dec. 31, 2020, 9:46 a.m.