fit: Fit a model

Description Usage Arguments Value Author(s) See Also Examples

View source: R/modeling.r

Description

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

Usage

1
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.

Author(s)

Christofer Bäcklin

See Also

emil, modeling_procedure, evaluate, tune, predict, get_importance

Examples

1
mod <- fit("lda", x=iris[-5], y=iris$Species)

Example output

Attaching package: 'emil'

The following object is masked from 'package:base':

    mode

Loading required namespace: MASS

emil documentation built on Aug. 1, 2018, 1:03 a.m.

Related to fit in emil...