Learn R Programming

iai (version 1.0.0)

fit: fit

Description

Fits a model to the training data

Usage

fit(lnr, X, ...)

Arguments

lnr

The learner or grid to fit.

X

The features of the data.

...

Other parameters, including zero or more target vectors as required by the problem type. Refer to the Julia documentation for available parameters.

Details

Julia Equivalent: IAI.fit!

Examples

Run this code
# NOT RUN {
X <- iris[, 1:4]
y <- iris$Species
iai::iai_setup()
grid <- iai::grid_search(
    iai::optimal_tree_classifier(max_depth = 1),
)
iai::fit(grid, X, y)
# }

Run the code above in your browser using DataLab