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
Modifier and Type | Class and Description |
---|---|
static class |
SharedTreeModel.SharedTreeOutput |
static class |
SharedTreeModel.SharedTreeParameters |
hex.Model.BigScore, hex.Model.DeepFeatures, hex.Model.ExemplarMembers, hex.Model.GetMostImportantFeatures, hex.Model.GLRMArchetypes, hex.Model.GridSortBy, hex.Model.InteractionPair, hex.Model.JavaModelStreamWriter, hex.Model.LeafNodeAssignment, hex.Model.Output, hex.Model.Parameters
Constructor and Description |
---|
SharedTreeModel(water.Key<M> selfKey,
P parms,
O output) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
binomialOpt() |
protected M |
deepClone(water.Key<M> result)
Performs deep clone of given model.
|
java.lang.String[] |
getMostImportantFeatures(int n) |
hex.ToEigenVec |
getToEigenVec() |
hex.ModelMetrics.MetricBuilder |
makeMetricBuilder(java.lang.String[] domain) |
protected water.fvec.Frame |
postProcessPredictions(water.fvec.Frame predictFr) |
protected water.Keyed |
readAll_impl(water.AutoBuffer ab,
water.Futures fs) |
protected water.Futures |
remove_impl(water.Futures fs) |
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) |
water.fvec.Frame |
scoreLeafNodeAssignment(water.fvec.Frame frame,
water.Key<water.fvec.Frame> destination_key) |
protected boolean |
toJavaCheckTooBig() |
protected <T extends water.exceptions.JCodeSB> |
toJavaForestName(T sb,
java.lang.String mname,
int t) |
protected water.util.SBPrintStream |
toJavaInit(water.util.SBPrintStream sb,
water.codegen.CodeGeneratorPipeline fileCtx) |
protected void |
toJavaPredictBody(water.util.SBPrintStream body,
water.codegen.CodeGeneratorPipeline classCtx,
water.codegen.CodeGeneratorPipeline fileCtx,
boolean verboseCode) |
protected <T extends water.exceptions.JCodeSB> |
toJavaTreeName(T sb,
java.lang.String mname,
int t,
int c) |
protected abstract void |
toJavaUnifyPreds(water.util.SBPrintStream body) |
protected water.AutoBuffer |
writeAll_impl(water.AutoBuffer ab)
Write out K/V pairs
|
adaptTestForTrain, adaptTestForTrain, addMetrics, addModelMetrics, addWarning, auc, checksum_impl, classification_error, cleanup_adapt, closeBigScorePredict, compareTo, computeDeviances, data, defaultThreshold, deleteCrossValidationModels, deviance, deviance, fillScoringInfo, getDefaultGridSortBy, getMojo, isSupervised, last_scored, lift_top_group, logloss, loss, mae, makeBigScoreTask, makeInteraction, makeInteractions, makeInteractions, makeSchema, makeScoringNames, mean_per_class_error, mse, predictScoreImpl, rmsle, score, score, score, score, score, score0, score0, scoreMetrics, scoring_history, scoringDomains, setupBigScorePredict, testJavaScoring, testJavaScoring, testJavaScoring, toJava, toJava, toJava, toJavaNCLASSES, toJavaPROB, toJavaSuper, toString
delete_and_lock, delete_and_lock, delete_and_lock, delete, delete, delete, read_lock, read_lock, read_lock, unlock_all, unlock, unlock, unlock, unlock, update, update, update, write_lock, write_lock, write_lock
checksum, readAll, remove, remove, remove, remove, 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>
public water.fvec.Frame scoreLeafNodeAssignment(water.fvec.Frame frame, water.Key<water.fvec.Frame> destination_key)
scoreLeafNodeAssignment
in interface hex.Model.LeafNodeAssignment
protected water.fvec.Frame postProcessPredictions(water.fvec.Frame predictFr)
postProcessPredictions
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)
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 water.Futures remove_impl(water.Futures fs)
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>
protected boolean toJavaCheckTooBig()
toJavaCheckTooBig
in class hex.Model<M extends SharedTreeModel<M,P,O>,P extends SharedTreeModel.SharedTreeParameters,O extends SharedTreeModel.SharedTreeOutput>
protected boolean binomialOpt()
protected water.util.SBPrintStream toJavaInit(water.util.SBPrintStream sb, water.codegen.CodeGeneratorPipeline fileCtx)
toJavaInit
in class hex.Model<M extends SharedTreeModel<M,P,O>,P extends SharedTreeModel.SharedTreeParameters,O extends SharedTreeModel.SharedTreeOutput>
protected void toJavaPredictBody(water.util.SBPrintStream body, water.codegen.CodeGeneratorPipeline classCtx, water.codegen.CodeGeneratorPipeline fileCtx, boolean verboseCode)
toJavaPredictBody
in class hex.Model<M extends SharedTreeModel<M,P,O>,P extends SharedTreeModel.SharedTreeParameters,O extends SharedTreeModel.SharedTreeOutput>
protected abstract void toJavaUnifyPreds(water.util.SBPrintStream body)
protected <T extends water.exceptions.JCodeSB> T toJavaTreeName(T sb, java.lang.String mname, int t, int c)
protected <T extends water.exceptions.JCodeSB> T toJavaForestName(T sb, java.lang.String mname, int t)