Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fit.h2o4gpu_model

Train an H2O4GPU Estimator


Description

This function builds the model using the training data specified.

Usage

## S3 method for class 'h2o4gpu_model'
fit(object, x, y = NULL, ...)

Arguments

object

The h2o4gpu model object

x

The training data where each column represents a different predictor variable to be used in building the model.

y

A vector of numeric values to be used as response variable in building the model. Note that if the vector is character or factor, it will be converted to numeric column (e.g. 0, 1, 2, ...) implicitly. For unsupervised models, this argument can be ignored or specified as NULL.

...

Additional arguments (unused for now).

Examples

## Not run: 

library(h2o4gpu)

# Setup dataset
x <- iris[1:4]
y <- as.integer(iris$Species) - 1

# Train the classifier
h2o4gpu.random_forest_classifier() %>% fit(x, y)

## End(Not run)

h2o4gpu

Interface to 'H2O4GPU'

v0.2.0
Apache License 2.0
Authors
Yuan Tang [aut, cre] (<https://orcid.org/0000-0001-5243-233X>), Navdeep Gill [aut], Erin LeDell [aut], H2O.ai [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.