fit_transform: Fit an imputation model using the given features and impute...

View source: R/iaibase.R

fit_transformR Documentation

Fit an imputation model using the given features and impute the missing values in these features

Description

Similar to calling fit.imputation_learner followed by transform

Usage

fit_transform(lnr, X, ...)

Arguments

lnr

The learner or grid to use for imputation

X

The features of the data.

...

Refer to the Julia documentation for available parameters.

Details

Julia Equivalent: IAI.fit_transform!

Examples

## Not run: 
X <- iris
X[1, 1] <- NA
grid <- iai::grid_search(
    iai::imputation_learner(),
    method = c("opt_knn", "opt_tree"),
)
iai::fit_transform(grid, X)

## End(Not run)

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