predict.BASELINEmodel {utiml} | R Documentation |
This function predicts values based upon a model trained by
baseline
.
## S3 method for class 'BASELINEmodel'
predict(object, newdata, probability = getOption("utiml.use.probs", TRUE), ...)
object |
Object of class ' |
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: |
... |
not used. |
An object of type mlresult, based on the parameter probability.
model <- baseline(toyml)
pred <- predict(model, toyml)