Learn R Programming

emil (version 1.1-6)

fit: Fit a model

Description

Fits a model according to a modeling procedure. If the procedure contains untuned variables they it will automatically be tuned prior to fitting. Note however that the tuning statistics will not be return.

Usage

fit(proc, x, y, ..., .verbose)

Arguments

proc
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 batch.model.
.verbose
Whether to print an activity log.

Value

  • A list of fitted models.

See Also

emil, modeling.procedure, evaluate.modeling, tune, predict, vimp

Examples

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

Run the code above in your browser using DataLab