model Package

model Package

auc_data Module

An object containing information about a binomial classifier.

class h2o.model.auc_data.AUCData(raw_auc)[source]

Bases: object

class h2o.model.auc_data.ThresholdCriterion[source]

Bases: object

An Enum for the Threshold Criteria

ACCURACY = 'maximum Accuracy'
F0POINT5 = 'maximum F0point5'
MAXF1 = 'maximum F1'
MAXF2 = 'maximum F2'
MCC = 'maximum absolute MCC'
MINMAXPERCLASSERR = 'minimizing max per class Error'
PRECISION = 'maximum Precision'
RECALL = 'maximum Recall'
SPECIFICITY = 'maximum Specificity'
crits()[source]

binomial Module

Binomial Models should be comparable.

class h2o.model.binomial.H2OBinomialModel(dest_key, model_json)[source]

Bases: h2o.model.model_base.ModelBase

Class for Binomial models.

class h2o.model.binomial.H2OBinomialModelMetrics(metric_json)[source]

Bases: object

This class is essentially an API for the AUCData object. This class contains methods for inspecting the AUC for different criteria. To input the different criteria, use the static variable criteria

F0point5(thresholds=None)[source]
F1(thresholds=None)[source]
F2(thresholds=None)[source]
accuracy(thresholds=None)[source]
auc()[source]
confusion_matrices(thresholds=None)[source]
error(thresholds=None)[source]
giniCoef()[source]
max_per_class_error(thresholds=None)[source]
mcc(thresholds=None)[source]
metric(metric='accuracy', thresholds=None)[source]
mse()[source]
precision(thresholds=None)[source]
recall(thresholds=None)[source]
show()[source]
specificity(thresholds=None)[source]
theCriteria = <h2o.model.auc_data.ThresholdCriterion object at 0x4d10690>

clustering Module

Clustering Models should be comparable.

class h2o.model.clustering.H2OClusteringModel(dest_key, model_json)[source]

Bases: h2o.model.model_base.ModelBase

avg_between_ss()[source]
avg_ss()[source]
avg_within_ss()[source]
centers()[source]
size()[source]
summary()[source]

This method prints out various relevant pieces of information for a clustering model.

within_mse()[source]
class h2o.model.clustering.H2OClusteringModelMetrics(metric_json)[source]

Bases: object

confusion_matrix Module

A confusion matrix from H2O.

class h2o.model.confusion_matrix.ConfusionMatrix(cm, domains=None)[source]

Bases: object

ROUND = 4
static read_cms(cms=None, domains=None)[source]
show()[source]

model_base Module

This module implements the base model class. All model things inherit from this class.

class h2o.model.model_base.ModelBase(dest_key, model_json, metrics_class)[source]

Bases: object

model_performance(test_data)[source]

Generate model metrics for this model on test_data. :param test_data: Data set for which model metrics shall be computed against. :return: An object of class H2OModelMetrics.

predict(test_data)[source]

Predict on a dataset. :param test_data: Data to be predicted on. :return: A new H2OFrame filled with predictions.

show()[source]

Print innards of model, without regards to type :return: None

summary()[source]

Print a detailed summary of the model. :return:

multinomial Module

Multinomial Models should be comparable.

class h2o.model.multinomial.H2OMultinomialModel(dest_key, model_json)[source]

Bases: h2o.model.model_base.ModelBase

summary()[source]

This method prints out various relevant pieces of information for a multinomial model. :return:

class h2o.model.multinomial.H2OMultinomialModelMetrics(metric_json)[source]

Bases: object

regression Module

Regression Models should be comparable.

class h2o.model.regression.H2ORegressionModel(dest_key, model_json)[source]

Bases: h2o.model.model_base.ModelBase

Class for Regression models.

class h2o.model.regression.H2ORegressionModelMetrics(metric_json)[source]

Bases: object

This class provides an API for inspecting the metrics returned by a regression model.

It is possible to retrieve the R^2 (1 - mse/variance), mse, and sigma.s

mse()[source]
Returns:The MSE for this regression model.
r2()[source]

Return the R^2 for this regression model.

The R^2 value is defined to be 1 - mse/var, where var is computed as sigma*sigma. :return: The R^2 for this regression model.

show()[source]
sigma()[source]
Returns:

Table Of Contents

Previous topic

H2O Module

Next topic

Others

This Page