Learn R Programming

emil (version 2.0.2)

predict.model: Predict the response of unknown observations

Description

Predict the response of unknown observations

Usage

## S3 method for class 'model':
predict(object, x, ..., .verbose = FALSE)

Arguments

object
Fitted model.
x
Data set with observations whose response is to be predicted.
...
Sent to the procedure's prediction function.
.verbose
Whether to print an activity log. Set to -1 to suppress all messages.

Value

  • See the documentation of procedure's method.

See Also

emil, modeling_procedure, evaluate,fit, tune, get_importance

Examples

Run this code
procedure <- modeling_procedure("lda")
mod <- fit(procedure, x=iris[-5], y=iris$Species)
prediction <- predict(mod, iris[-5])

Run the code above in your browser using DataLab