# NOT RUN {
X <- iris[, 1:4]
y <- iris$Species
iai::iai_setup()
split <- iai::split_data("classification", X, y, train_proportion = 0.75)
train_X <- split[[1]][[1]]
train_y <- split[[1]][[2]]
test_X <- split[[2]][[1]]
test_y <- split[[2]][[2]]
# }
Run the code above in your browser using DataLab