x <- data.frame(a = c(1, 2, NA), b = c(3, 4, 5))
fit <- .guard_fit(x, y = c(1, 2, 3),
steps = list(impute = list(method = "median")),
task = "gaussian")
fit$transform(x)
Run the code above in your browser using DataLab