Learn R Programming

emil (version 2.0.2)

fit: Fit a model

Description

Fits a model according to a modeling procedure. If the procedure contains untuned parameters they will automatically be tuned prior to fitting.

Usage

fit(procedure, x, y, ..., .verbose = TRUE)

Arguments

procedure
Modeling procedure, or list of modeling procedures, as produced by modeling_procedure.
x
Dataset, observations as rows and descriptors as columns.
y
Response vector.
...
Sent to tune, in case tuning is required, which will pass them on to evaluate.
.verbose
Whether to print an activity log. Set to -1 to suppress all messages.

Value

  • A list of fitted models.

See Also

emil, modeling_procedure, evaluate, tune, predict, get_importance

Examples

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

Run the code above in your browser using DataLab