predict.BASELINEmodel: Predict Method for BASELINE

Description Usage Arguments Value See Also Examples

Description

This function predicts values based upon a model trained by baseline.

Usage

1
2
## S3 method for class 'BASELINEmodel'
predict(object, newdata, probability = getOption("utiml.use.probs", TRUE), ...)

Arguments

object

Object of class 'BASELINEmodel'.

newdata

An object containing the new input data. This must be a matrix, data.frame or a mldr object.

probability

Logical indicating whether class probabilities should be returned. (Default: getOption("utiml.use.probs", TRUE))

...

not used.

Value

An object of type mlresult, based on the parameter probability.

See Also

Baseline

Examples

1
2
model <- baseline(toyml)
pred <- predict(model, toyml)

rivolli/utiml documentation built on June 1, 2021, 11:48 p.m.