predict.milr: Predict Method for milr Fits

View source: R/milr.R

predict.milrR Documentation

Predict Method for milr Fits

Description

Predict Method for milr Fits

Usage

## S3 method for class 'milr'
predict(object, newdata = NULL, bag_newdata = NULL, type = "bag", ...)

Arguments

object

A fitted obejct of class inheriting from "milr".

newdata

Default is NULL. A matrix with variables to predict.

bag_newdata

Default is NULL. A vector. The labels of instances to bags. If newdata and bag_newdata both are NULL, return the fitted result.

type

The type of prediction required. Default is "bag", the predicted labels of bags. The "instance" option returns the predicted labels of instances.

...

further arguments passed to or from other methods.


ChingChuan-Chen/milr documentation built on March 12, 2024, 10:22 a.m.