public abstract class SharedTreeModel<M extends SharedTreeModel<M,P,O>,P extends SharedTreeModel.SharedTreeParameters,O extends SharedTreeModel.SharedTreeOutput>
extends hex.Model<M,P,O>
implements hex.Model.LeafNodeAssignment, hex.Model.GetMostImportantFeatures, hex.Model.FeatureFrequencies, hex.Model.UpdateAuxTreeWeights
Modifier and Type | Class and Description |
---|---|
static class |
SharedTreeModel.BufStringDecisionPathTracker |
static class |
SharedTreeModel.SharedTreeOutput |
static class |
SharedTreeModel.SharedTreeParameters |
hex.Model.AdaptFrameParameters, hex.Model.BigScore, hex.Model.BigScoreChunkPredict, hex.Model.BigScorePredict, hex.Model.Contributions, hex.Model.DeepFeatures, hex.Model.ExemplarMembers, hex.Model.FeatureFrequencies, hex.Model.GetMostImportantFeatures, hex.Model.GetNTrees, hex.Model.GLRMArchetypes, hex.Model.GridSortBy, hex.Model.H2OModelDescriptor, hex.Model.InteractionBuilder, hex.Model.InteractionPair, hex.Model.InteractionSpec, hex.Model.JavaModelStreamWriter, hex.Model.JavaScoringOptions, hex.Model.LeafNodeAssignment, hex.Model.Output, hex.Model.Parameters, hex.Model.PredictScoreResult, hex.Model.RowToTreeAssignment, hex.Model.StagedPredictions, hex.Model.UpdateAuxTreeWeights
Constructor and Description |
---|
SharedTreeModel(water.Key<M> selfKey,
P parms,
O output) |
Modifier and Type | Method and Description |
---|---|
boolean |
binomialOpt() |
protected M |
deepClone(water.Key<M> result)
Performs deep clone of given model.
|
hex.genmodel.CategoricalEncoding |
getGenModelEncoding() |
java.lang.String[] |
getMostImportantFeatures(int n) |
hex.genmodel.algos.tree.SharedTreeSubgraph |
getSharedTreeSubgraph(int tidx,
int cls)
Converts a given tree of the ensemble to a user-understandable representation.
|
hex.ToEigenVec |
getToEigenVec() |
boolean |
isFeatureUsedInPredict(java.lang.String featureName) |
protected java.lang.String[] |
makeAllTreeColumnNames() |
hex.ModelMetrics.MetricBuilder |
makeMetricBuilder(java.lang.String[] domain) |
protected hex.PojoWriter |
makePojoWriter() |
protected SharedTreePojoWriter |
makeTreePojoWriter() |
protected water.fvec.Frame |
postProcessPredictions(water.fvec.Frame adaptedFrame,
water.fvec.Frame predictFr,
water.Job j) |
protected water.Keyed |
readAll_impl(water.AutoBuffer ab,
water.Futures fs) |
protected water.Futures |
remove_impl(water.Futures fs,
boolean cascade) |
protected double[] |
score0(double[] data,
double[] preds) |
protected double[] |
score0(double[] data,
double[] preds,
double offset) |
protected double[] |
score0(double[] data,
double[] preds,
double offset,
int ntrees) |
protected double[] |
score0(double[] data,
double[] preds,
double offset,
int startTree,
int ntrees) |
protected double[] |
score0Incremental(Score.ScoreIncInfo sii,
water.fvec.Chunk[] chks,
double offset,
int row_in_chunk,
double[] tmp,
double[] preds) |
water.fvec.Frame |
scoreFeatureFrequencies(water.fvec.Frame frame,
water.Key<water.fvec.Frame> destination_key) |
water.fvec.Frame |
scoreLeafNodeAssignment(water.fvec.Frame frame,
hex.Model.LeafNodeAssignment.LeafNodeAssignmentType type,
water.Key<water.fvec.Frame> destination_key) |
hex.Model.UpdateAuxTreeWeights.UpdateAuxTreeWeightsReport |
updateAuxTreeWeights(water.fvec.Frame frame,
java.lang.String weightsColumn) |
protected water.AutoBuffer |
writeAll_impl(water.AutoBuffer ab)
Write out K/V pairs
|
adaptFrameForScore, adaptTestForJavaScoring, adaptTestForTrain, adaptTestForTrain, adaptTestForTrain, addMetrics, addModelMetrics, addWarning, aic, auc, AUCPR, checksum_impl, classification_error, compareTo, computeDeviances, containsResponse, data, defaultThreshold, defaultThreshold, deleteCrossValidationFoldAssignment, deleteCrossValidationModels, deleteCrossValidationPreds, deviance, deviance, evaluateAutoModelParameters, exportBinaryModel, exportMojo, fetchAll, fillScoringInfo, getDefaultGridSortBy, getMojo, getPojoInterfaces, haveMojo, havePojo, importBinaryModel, initActualParamValues, isDistributionHuber, isFeatureUsedInPredict, isGeneric, isSupervised, last_scored, lift_top_group, likelihood, logloss, loss, mae, makeAdaptFrameParameters, makeBigScoreTask, makeInteraction, makeInteractions, makeInteractions, makeSchema, makeScoringDomains, makeScoringNames, makeScoringNames, mean_per_class_error, modelDescriptor, mse, needsPostProcess, predictScoreImpl, r2, resetThreshold, result, rmsle, score, score, score, score, score, score, score, score, score0, score0, score0PostProcessSupervised, scoreMetrics, scoring_history, scoringDomains, setInputParms, setupBigScorePredict, testJavaScoring, testJavaScoring, testJavaScoring, testJavaScoring, testJavaScoring, toJava, toJava, toJava, toJavaAlgo, toJavaCheckTooBig, toJavaInit, toJavaModelClassName, toJavaPredictBody, toJavaTransform, toJavaUUID, toMojo, toMojo, toString, transform, uploadBinaryModel, writeTo
delete_and_lock, delete_and_lock, delete_and_lock, delete_and_lock, delete, delete, delete, delete, read_lock, read_lock, read_lock, unlock_all, unlock, unlock, unlock, unlock, update, update, update, write_lock_to_read_lock, write_lock, write_lock, write_lock
checksum_impl, checksum, checksum, getKey, readAll, remove_impl, remove_self_key_impl, remove, remove, remove, remove, remove, remove, removeQuietly, writeAll
public java.lang.String[] getMostImportantFeatures(int n)
getMostImportantFeatures
in interface hex.Model.GetMostImportantFeatures
public hex.ToEigenVec getToEigenVec()
getToEigenVec
in class hex.Model<M extends SharedTreeModel<M,P,O>,P extends SharedTreeModel.SharedTreeParameters,O extends SharedTreeModel.SharedTreeOutput>
public hex.ModelMetrics.MetricBuilder makeMetricBuilder(java.lang.String[] domain)
makeMetricBuilder
in class hex.Model<M extends SharedTreeModel<M,P,O>,P extends SharedTreeModel.SharedTreeParameters,O extends SharedTreeModel.SharedTreeOutput>
protected java.lang.String[] makeAllTreeColumnNames()
public water.fvec.Frame scoreLeafNodeAssignment(water.fvec.Frame frame, hex.Model.LeafNodeAssignment.LeafNodeAssignmentType type, water.Key<water.fvec.Frame> destination_key)
scoreLeafNodeAssignment
in interface hex.Model.LeafNodeAssignment
public hex.Model.UpdateAuxTreeWeights.UpdateAuxTreeWeightsReport updateAuxTreeWeights(water.fvec.Frame frame, java.lang.String weightsColumn)
updateAuxTreeWeights
in interface hex.Model.UpdateAuxTreeWeights
public water.fvec.Frame scoreFeatureFrequencies(water.fvec.Frame frame, water.Key<water.fvec.Frame> destination_key)
scoreFeatureFrequencies
in interface hex.Model.FeatureFrequencies
protected water.fvec.Frame postProcessPredictions(water.fvec.Frame adaptedFrame, water.fvec.Frame predictFr, water.Job j)
postProcessPredictions
in class hex.Model<M extends SharedTreeModel<M,P,O>,P extends SharedTreeModel.SharedTreeParameters,O extends SharedTreeModel.SharedTreeOutput>
protected double[] score0Incremental(Score.ScoreIncInfo sii, water.fvec.Chunk[] chks, double offset, int row_in_chunk, double[] tmp, double[] preds)
protected double[] score0(double[] data, double[] preds, double offset)
score0
in class hex.Model<M extends SharedTreeModel<M,P,O>,P extends SharedTreeModel.SharedTreeParameters,O extends SharedTreeModel.SharedTreeOutput>
protected double[] score0(double[] data, double[] preds)
score0
in class hex.Model<M extends SharedTreeModel<M,P,O>,P extends SharedTreeModel.SharedTreeParameters,O extends SharedTreeModel.SharedTreeOutput>
protected double[] score0(double[] data, double[] preds, double offset, int ntrees)
protected double[] score0(double[] data, double[] preds, double offset, int startTree, int ntrees)
protected water.Futures remove_impl(water.Futures fs, boolean cascade)
remove_impl
in class hex.Model<M extends SharedTreeModel<M,P,O>,P extends SharedTreeModel.SharedTreeParameters,O extends SharedTreeModel.SharedTreeOutput>
protected water.AutoBuffer writeAll_impl(water.AutoBuffer ab)
writeAll_impl
in class hex.Model<M extends SharedTreeModel<M,P,O>,P extends SharedTreeModel.SharedTreeParameters,O extends SharedTreeModel.SharedTreeOutput>
protected water.Keyed readAll_impl(water.AutoBuffer ab, water.Futures fs)
readAll_impl
in class hex.Model<M extends SharedTreeModel<M,P,O>,P extends SharedTreeModel.SharedTreeParameters,O extends SharedTreeModel.SharedTreeOutput>
public hex.genmodel.algos.tree.SharedTreeSubgraph getSharedTreeSubgraph(int tidx, int cls)
tidx
- tree indexcls
- tree classpublic boolean isFeatureUsedInPredict(java.lang.String featureName)
isFeatureUsedInPredict
in class hex.Model<M extends SharedTreeModel<M,P,O>,P extends SharedTreeModel.SharedTreeParameters,O extends SharedTreeModel.SharedTreeOutput>
public boolean binomialOpt()
public hex.genmodel.CategoricalEncoding getGenModelEncoding()
getGenModelEncoding
in class hex.Model<M extends SharedTreeModel<M,P,O>,P extends SharedTreeModel.SharedTreeParameters,O extends SharedTreeModel.SharedTreeOutput>
protected SharedTreePojoWriter makeTreePojoWriter()
protected final hex.PojoWriter makePojoWriter()
makePojoWriter
in class hex.Model<M extends SharedTreeModel<M,P,O>,P extends SharedTreeModel.SharedTreeParameters,O extends SharedTreeModel.SharedTreeOutput>