# NOT RUN {
library(h2o4gpu)
# Setup dataset
x <- iris[1:4]
y <- as.integer(iris$Species) - 1
# Initialize and train the classifier
model <- h2o4gpu.random_forest_classifier() %>% fit(x, y)
# Make predictions
predictions <- model %>% predict(x)
# }
Run the code above in your browser using DataCamp Workspace