Sie sind auf Seite 1von 2

h2o: : CHEAT SHEET

Dataset Operations General Operations Methods from Group Generics: Math


DATA IMPORT / EXPORT SUBSCRIPTING MATH (H2O) MATH (GENERIC)
h2o.downloadCSV: Download a H2O Subscripting example to pull pieces from abs: Compute the absolute value of x. acos: Compute the trigonometric arc-
dataset to a CSV file on local disk. data object. sign: Return a vector with the signs of the cosine.
corresponding elements of x (the sign of a acosh: Compute the hyperbolic arc-cosine.
h2o.exportFile: Export H2O Data Frame x[j] ## column J x[i] <- value
real number is 1, 0, or -1 if the number is
to a file. x[i, j] x[i, j, ...] <- value asin: Compute the trigonometric arc-sine.
positive, zero, or negative, respectively).
x[[i]] x[[i]] <- value Value
h2o.importFile: Import a file from the local x$name Selection x$i <- value Assignation sqrt: Computes the principal square root asinh: Compute the hyperbolic arc-sine.
path and parse it. of x, √x. atan: Compute the trigonometric arc-
ceiling: Take a single numeric argument x tangent.
h2o.parseRaw: Parse a raw data file. SUBSETTING
and return a numeric vector containing the atanh: Compute the hyperbolic arc-
head, tail: Return the First or Last Part of
h2o.uploadFile: Upload a file from the local smallest integers not less than the tangent.
an Object
drive and parse it. corresponding elements of x.
CONCATENATION expm1: Compute exp(x) - 1 accurately also
floor: Take a single numeric argument x
c: Combine Values into a Vector or List. for |x|<< 1.
NATIVE R TO H2O COERCION and return a numeric vector containing the
h2o.cbind: Take a sequence of H2O largest integers not greater than the cos: Compute the trigonometric cosine.
as.h2o: Convert an R object to an H2O
datasets and combine them by column. corresponding elements of x. cosh: Compute the hyperbolic cosine.
object.
DATA ATTRIBUTES trunc: Take a single numeric argument x cospi: Compute the trigonometric two-
H2O TO NATIVE R COERCION and return a numeric vector containing the argument arc-cosine.
colnames: Return column names for a
integers formed by truncating the values in
as.data.frame: Check if an object is a data parsed H2O data object. sin: Compute the trigonometric sine.
x toward 0.
frame, or coerce it if possible. colnames<-: Retrieve or set the row or
log: Compute logarithms (by default, sinh: Compute the hyperbolic sine.
column names of a matrix-like object.
DATA GENERATION natural logarithms). sinpi: Compute the trigonometric two-
names: Get the name of an object. exp: Compute the exponential function. argument arc-sine.
h2o.createFrame: Create an H2O data
names<-: Set the name of an object. tan: Compute the trigonometric tangent.
frame, with optional randomization. MATH (GENERIC)
dim: Retrieve the dimension of an object. cummax: Display a vector of the
h2o.runif: Produce a vector of random tanh: Compute the hyperbolic tangent.
length: Get the length of vectors (including cumulative maxima of the elements of the
uniform numbers. argument. tanpi: Compute the trigonometric two-
lists) and factors. argument arc-tangent.
h2o.interaction: Create interaction terms nrow: Return a count of the number of cummin: Display a vector of the
between categorical features of an H2O cumulative minima of the elements of the gamma: Display the gamma function γx
rows in an H2OParsedData object.
Frame. argument. lgamma: Display the natural logarithm of
ncol: Return a count of the number of the absolute value of the gamma function.
cumprod: Display a vector of the
DATA SAMPLING / SPLITTING columns in an H2OParsedData object.
cumulative products of the elements of the digamma: Display the first derivative of the
h2o.splitFrame: Split an existing H2O h2o.anyFactor: Check if an H2O parsed argument. logarithm of the gamma function.
dataset according to user-specified ratios. data object has any categorical data
cumsum: Display a vector of the trigamma: Display the second derivative of
columns.
cumulative sums of the elements of the the logarithm of the gamma function.
MISSING DATA HANDLING is.factor: Check if a given column contains argument.
categorical data. log10: Compute common (i.e., base 10)
h2o.impute: Impute a column of data using MATH2 (H2O)
the mean, median, or mode. DATA TYPE COERCION logarithms. round: Round the values to the specified
as.factor: Convert a column from numeric log2: Compute binary (i.e., base 2) number of decimal places. The default is 0.
h2o.insertMissingValues: Replaces a user-
to factor. logarithms.
specified fraction of entries in a H2O dataset signif: Round the values to the specified
with missing values. as.Date: Converts a column from factor to log1p: Compute log(1+x) accurately also number of significant digits.
date. for |x|<< 1.
H2O.ai. • CC BY SA Juan Telleria Ruiz de Aguirre • jtelleria.rproject@gmail.com • http://docs.h2o.ai/ • Learn more at H2O.ai documentation webpage • package version 3.16.0.2 • Updated: 2018-04
h2o: : CHEAT SHEET
Methods from Group Data Munging Data Modeling Cluster Operations
Generics: Summary GENERAL COLUMN MANIPULATION MODEL TRAINING: SUPERVISED LEARNING
h2o.deeplearning: Deep Learning Neural Networks.
H2O KEY VALUE STORE ACCESS
SUMMARY (H2O) is.na: Display missing elements. h2o.assign: Assign H2O hex.keys to R objects.
max: Display the maximum of all the input h2o.gbm: Gradient Boosted Classification Trees and h2o.getFrame: Get H2O dataset Reference.
ELEMENT INDEX SELECTION
arguments. Gradient Boosted Regression Trees.
h2o.which: Display the row numbers for h2o.getModel: Get H2O model reference.
which the condition is true. h2o.glm: Generalized Linear Model, fit by specifying
min: Display the minimum of all the input h2o.ls: Display a list of object keys in the
a response variable, a set of predictors, and a
arguments. CONDITIONAL ELEMENT VALUE SELECTION running instance of H2O.
description of the error distribution.
range: Display a vector containing the h2o.ifelse: Apply conditional statements to
h2o.naiveBayes: Naive Bayes Classifier. h2o.rm: Remove H2O objects from the server
minimum and maximum of all the given numeric vectors in H2O parsed data
where the instance of H2O is running, but does
arguments. objects. h2o.randomForest: Random Forest Classification. not remove it from the R environment.
sum: Calculate the sum of all the values NUMERIC COLUMN MANIPULATIONS h2o.xgboost: Extreme Gradient Boosted Model. H2O OBJECT SERIALIZATION
present in its arguments. h2o.cut: Convert H2O Numeric Data to MODEL TRAINING: UNSUPERVISED LEARNING h2o.loadModel: Load H2OModel from disk.
Factor. h2o.prcomp: Principal Components Analysis.
SUMMARY (GENERIC) h2o.saveModel: Save H2OModel object to disk.
CHARACTER COLUMN MANIPULATIONS h2o.kmeans: k-means Clustering.
prod: Display the product of all values H2O CLUSTER CONNECTION
h2o.strsplit: String Split: “Splits the given
present in its arguments. h2o.anomaly: Detect anomalies using a H2O deep h2o.init ( nthreads = -1 ): Connect to a running
factor column on the input split”. learning model with auto-encoding. H2O instance using all CPUs on the host.
any: Given a set of logical vectors,
h2o.tolower: Convert the characters of a h2o.deepfeatures: Extract the non-linear features h2o.shutdown: Shut down the specified H2O
determine if at least one of the values is
character vector to lower case. using a H2O deep learning model. instance. All data on the server will be lost!
true.
h2o.toupper: Convert the characters of a GRID SEARCH H2O LOAD BALANCING
all: Given a set of logical vectors, character vector to lower case. h2o.grid: Efficient method to build multiple models h2o.rebalance: Rebalance (repartition) an
determine if all of the values are true. with different hyperparameters.
h2o.trim: Trim spaces: “Remove leading existing H2O dataset into given number of
Other Aggregations and trailing white space”. MODEL SCORING
h2o.predict: Obtain predictions from various fitted
chunks (per Vec), for load-balancing across
multiple threads or nodes.
NON-GROUP GENERIC SUMMARIES h2o.gsub: Match a pattern & replace all
H2O model objects.
instances (occurrences) of the matched H2O CLUSTER INFORMATION
mean: Generic function for the (trimmed) MODEL METRICS
pattern with the replacement string globally. h2o.clusterInfo: Display the name, version,
arithmetic mean. ho2.model metrics: Given predicted values (target uptime, total nodes, total memory, total cores
sd: Calculate the standard deviation of a h2o.sub: Match a pattern & replace the for regression, class-1 probabilities, or binomial or and health of a cluster running H2O.
column of continuous real valued data. first instance (occurrence) of the matched per-class probabilities for multinomial), compute a
pattern with the replacement string. model metrics object. h2o.clusterStatus: Retrieve information on the
var: Compute the variance of x. status of the cluster running H2O.
FACTOR LEVEL MANIPULATIONS REGRESSION MODEL HELPER
summary: Produce result summaries of h2o.mse: Display the mean squared error calculated H2O LOGGING
h2o.levels: Display a list of the unique
the results of various model fitting from a column of predicted responses and a column h2o.clearLog: Clear all H2O R command and
values found in a column of categorical
functions. of actual (reference) responses. error response logs from the local disk.
data.
quantile: Obtain and display quantiles for CLASSIFICATION MODEL HELPERS h2o.downloadAllLogs: Download all H2O log
DATE MANIPULATIONS h2o.accuracy: Between cluster sum of squares. files to the local disk.
H2O parsed data.
h2o.month: Convert the entries of a h2o.logAndEcho: Write a message to the H2O
ROW / COLUMN AGGREGATION H2OParsedData object from milliseconds h2o.auc: AUC (area under ROC curve).
apply: Apply a function over an H2O Java log file and echo it back.
to months (on a 0 to 11 scale). h2o.confusionMatrix: Display prediction errors for
parsed data object (an array). h2o.openLog: Open existing logs of H2O R
h2o.year: Convert the entries of a classification data (predicted vs reference).
POST commands and error responses on the
GROUP BY AGGREGATION h2o.hit_ratio_table: Retrieve the Hit Ratios.
H2OParsedData object from milliseconds to local disk.
h2o.group by: Apply an aggregate years, indexed starting from 1900. h2o.performance: Evaluate the predictive h2o.getLogPath: Get the file path for the H2O
function to each group of an H2O dataset. R command and error response logs.
MATRIX OPERATIONS performance of a model via various measures.
TABULATION h2o.startLogging: Begin logging H2O R POST
h2o.table: Use the cross-classifying %∗%: Multiply two conformable matrices. CLUSTERING MODEL HELPER
h2o.betweenss: Between Cluster Sum of Squares. commands and error responses.
factors to build a table of counts at each t: Given a matrix or data.frame x, t returns h2o.stopLogging: Stop logging H2O R POST
combination of factor levels. the transpose of x. h2o.centers: Retrieve the Model Centers.
commands and error responses.
H2O.ai. • CC BY SA Juan Telleria Ruiz de Aguirre • jtelleria.rproject@gmail.com • http://docs.h2o.ai/ • Learn more at H2O.ai documentation webpage • package version 3.16.0.2 • Updated: 2018-04

Das könnte Ihnen auch gefallen