Learn R Programming

iai (version 1.10.2)

fit.grid_search: Fits a grid_search to the training data

Description

Julia Equivalent: IAI.fit!

Usage

# S3 method for grid_search
fit(obj, X, ...)

Arguments

obj

The grid search 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

Run this code
if (FALSE) {
X <- iris[, 1:4]
y <- iris$Species
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