fit_cv: Fits a grid search to the training data with cross-validation

View source: R/iaibase.R

fit_cvR Documentation

Fits a grid search to the training data with cross-validation

Description

Julia Equivalent: IAI.fit_cv!

Usage

fit_cv(grid, X, ...)

Arguments

grid

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

Examples

## Not run: 
X <- iris[, 1:4]
y <- iris$Species
grid <- iai::grid_search(
    iai::optimal_tree_classifier(max_depth = 1),
)
iai::fit_cv(grid, X, y)

## End(Not run)

iai documentation built on Oct. 19, 2024, 1:07 a.m.

Related to fit_cv in iai...