public abstract static class SharedTreeModel.SharedTreeOutput extends hex.Model.Output implements hex.Model.GetNTrees, CalibrationHelper.OutputWithCalibration
Modifier and Type | Field and Description |
---|---|
hex.Model<?,?,?> |
_calib_model |
double |
_init_f
InitF value (for zero trees)
f0 = mean(yi) for gaussian
f0 = log(yi/1-yi) for bernoulli
For GBM bernoulli, the initial prediction for 0 trees is
p = 1/(1+exp(-f0))
From this, the mse for 0 trees (null model) can be computed as follows:
mean((yi-p)^2)
|
int |
_ntrees
Number of trees actually in the model (as opposed to requested)
|
hex.ScoreKeeper[] |
_scored_train |
hex.ScoreKeeper[] |
_scored_valid |
long[] |
_training_time_ms
Training time
|
water.Key<CompressedTree>[][] |
_treeKeys
Trees get big, so store each one separately in the DKV.
|
water.Key<CompressedTree>[][] |
_treeKeysAux |
TreeStats |
_treeStats
More indepth tree stats
|
water.util.TwoDimTable |
_variable_importances
Variable importances computed during training
|
hex.VarImp |
_varimp |
_column_types, _cross_validation_fold_assignment_frame_id, _cross_validation_holdout_predictions_frame_id, _cross_validation_metrics, _cross_validation_metrics_summary, _cross_validation_models, _cross_validation_predictions, _cv_scoring_history, _defaultThreshold, _distribution, _domains, _end_time, _hasFold, _hasOffset, _hasTreatment, _hasWeights, _isSupervised, _job, _model_summary, _modelClassDist, _names, _orig_projection_array, _origDomains, _origNames, _priorClassDist, _reproducibility_information_table, _run_time, _scoring_history, _start_time, _total_run_time, _training_metrics, _validation_metrics
Constructor and Description |
---|
SharedTreeOutput(SharedTree b) |
Modifier and Type | Method and Description |
---|---|
void |
addKTrees(DTree[] trees) |
hex.Model<?,?,?> |
calibrationModel() |
water.util.TwoDimTable |
createInputFramesInformationTable(hex.ModelBuilder modelBuilder) |
CompressedTree |
ctree(int tnum,
int knum) |
int |
getInformationTableNumRows() |
int |
getNTrees() |
water.util.TwoDimTable |
getVariableImportances() |
hex.ScoreKeeper[] |
scoreKeepers() |
void |
setCalibrationModel(hex.Model<?,?,?> model) |
java.lang.String |
toStringTree(int tnum,
int knum) |
void |
trimTo(int ntrees) |
changeModelMetricsKey, checksum_impl, classNames, clearModelMetrics, defaultThreshold, features, foldIdx, foldName, getModelCategory, getModelMetrics, hasFold, hasOffset, hasResponse, hasTreatment, hasWeights, interactionBuilder, isAutoencoder, isBinomialClassifier, isClassifier, isMultinomialClassifier, isSupervised, lastSpecialColumnIdx, nclasses, nfeatures, offsetIdx, offsetName, printTwoDimTables, resetThreshold, responseIdx, responseName, setNames, setNames, startClock, stopClock, toString, treatmentIdx, treatmentName, weightsIdx, weightsName
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSON
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCalibrationMethod, getModelCategory, isCalibrated
public double _init_f
public int _ntrees
public final TreeStats _treeStats
public water.Key<CompressedTree>[][] _treeKeys
public water.Key<CompressedTree>[][] _treeKeysAux
public hex.ScoreKeeper[] _scored_train
public hex.ScoreKeeper[] _scored_valid
public long[] _training_time_ms
public water.util.TwoDimTable _variable_importances
public hex.VarImp _varimp
public hex.Model<?,?,?> _calib_model
public SharedTreeOutput(SharedTree b)
public hex.ScoreKeeper[] scoreKeepers()
public water.util.TwoDimTable getVariableImportances()
getVariableImportances
in class hex.Model.Output
public water.util.TwoDimTable createInputFramesInformationTable(hex.ModelBuilder modelBuilder)
createInputFramesInformationTable
in class hex.Model.Output
public int getInformationTableNumRows()
getInformationTableNumRows
in class hex.Model.Output
public void addKTrees(DTree[] trees)
public void trimTo(int ntrees)
public int getNTrees()
getNTrees
in interface hex.Model.GetNTrees
public hex.Model<?,?,?> calibrationModel()
calibrationModel
in interface CalibrationHelper.OutputWithCalibration
public void setCalibrationModel(hex.Model<?,?,?> model)
setCalibrationModel
in interface CalibrationHelper.OutputWithCalibration
public CompressedTree ctree(int tnum, int knum)
public java.lang.String toStringTree(int tnum, int knum)