Simple Co-Occurrence based tabulation of X vs Y, where X and Y are two Vecs in a given dataset. Uses histogram of given resolution in X and Y. Handles numerical/categorical data and missing values. Supports observation weights.
h2o.tabulate(data, x, y, weights_column = NULL, nbins_x = 50, nbins_y = 50)
Returns two TwoDimTables of 3 columns each count_table: X Y counts response_table: X meanY counts
An H2OFrame object.
predictor column
response column
(optional) observation weights column
number of bins for predictor column
number of bins for response column
if (FALSE) {
library(h2o)
h2o.init()
df <- as.h2o(iris)
tab <- h2o.tabulate(data = df, x = "Sepal.Length", y = "Petal.Width",
weights_column = NULL, nbins_x = 10, nbins_y = 10)
plot(tab)
}
Run the code above in your browser using DataLab