Learn R Programming

emil (version 2.2.10)

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 = getOption("emil_verbose", FALSE))

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
# NOT RUN {
mod <- fit("lda", x=iris[-5], y=iris$Species)
# }

Run the code above in your browser using DataLab