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
| Modifier and Type | Class and Description |
|---|---|
static class |
SharedTreeModel.SharedTreeOutput |
static class |
SharedTreeModel.SharedTreeParameters |
| Constructor and Description |
|---|
SharedTreeModel(water.Key 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.
|
hex.ModelMetrics.MetricBuilder |
makeMetricBuilder(java.lang.String[] domain) |
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 weight,
double offset) |
protected double[] |
score0(double[] data,
double[] preds,
double weight,
double offset,
int ntrees) |
water.fvec.Frame |
scoreLeafNodeAssignment(water.fvec.Frame frame,
water.Key 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, addWarning, auc, checksum_impl, classification_error, cleanup_adapt, compareTo, defaultThreshold, deleteCrossValidationModels, deviance, deviance, fillScoringInfo, getToEigenVec, isSupervised, last_scored, lift_top_group, logloss, loss, mae, makeInteraction, makeInteractions, makeInteractions, makeSchema, makeScoringNames, mean_per_class_error, mse, predictScoreImpl, rmsle, score, score, score, score, score0, score0, scoreMetrics, scoring_history, scoringDomains, testJavaScoring, toJava, toJava, toJava, toJavaNCLASSES, toJavaPROB, toJavaSuper, toStringdelete_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_lockchecksum, readAll, remove, remove, remove, remove, writeAllpublic 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 destination_key)
scoreLeafNodeAssignment in interface hex.Model.LeafNodeAssignmentprotected double[] score0(double[] data,
double[] preds,
double weight,
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 weight,
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)