public final class DrfMojoModel extends SharedTreeMojoModelWithContributions implements SharedTreeGraphConverter
SharedTreeMojoModelWithContributions.SharedTreeContributionsPredictor
SharedTreeMojoModel.AuxInfo, SharedTreeMojoModel.DecisionPathTracker<T>, SharedTreeMojoModel.LeafDecisionPathTracker, SharedTreeMojoModel.LeafNodeAssignments, SharedTreeMojoModel.StringDecisionPathTracker
Modifier and Type | Field and Description |
---|---|
protected boolean |
_binomial_double_trees |
__INTERNAL_MAX_TREE_DEPTH, _calib_glm_beta, _compressed_trees, _compressed_trees_aux, _genmodel_encoding, _isotonic_calibrator, _ntree_groups, _ntrees_per_group, _orig_domain_values, _orig_names, _orig_projection_array
_algoName, _balanceClasses, _category, _defaultThreshold, _h2oVersion, _modelAttributes, _modelClassDistrib, _modelDescriptor, _mojo_version, _nclasses, _nfeatures, _priorClassDistrib, _reproducibilityInformation, _supervised, _uuid
_domains, _foldColumn, _names, _offsetColumn, _responseColumn, _treatmentColumn
Constructor and Description |
---|
DrfMojoModel(java.lang.String[] columns,
java.lang.String[][] domains,
java.lang.String responseColumn) |
Modifier and Type | Method and Description |
---|---|
protected PredictContributions |
getContributionsPredictor(TreeSHAPPredictor<double[]> treeSHAPPredictor) |
boolean |
isBinomialDoubleTrees() |
double[] |
score0(double[] row,
double[] preds)
Subclasses implement the scoring logic.
|
double[] |
score0(double[] row,
double offset,
double[] preds)
Corresponds to `hex.tree.drf.DrfMojoModel.score0()`
|
double[] |
unifyPreds(double[] row,
double offset,
double[] preds)
Transforms tree predictions into the final model predictions.
|
getInitF, makeContributionsPredictor
_computeGraph, calibrateClassProbabilities, computeGraph, computeGraph, computeTreeGraph, computeTreeGraph, convert, convert, findMaxNodeId, getCalibGlmBeta, getCategoricalEncoding, getDecisionPath, getDecisionPath, getDecisionPath, getDecisionPathNames, getIsotonicCalibrator, getLeafNodeAssignments, getLeafNodeId, getNTreeGroups, getNTreesPerGroup, getOrigDomainValues, getOrigNames, getOrigProjectionArray, postInit, readAuxInfos, scoreAllTrees, scoreSingleTree, scoreStagedPredictions, scoreTree, scoreTree, scoreTree0, scoreTree0, scoreTree1, scoreTree1, scoreTreeRange, treeBytes, treeName, writeUpdatedAuxInfos
getModelCategory, getUUID, isSupervised, load, load, load, nclasses, nfeatures
bitSetContains, bitSetIsInRange, convertDouble2Float, correctProbabilities, createAuxKey, features, GBM_rescale, getColIdx, getDomainValues, getDomainValues, getDomainValues, getHeader, getModelCategories, getNames, getNumClasses, getNumCols, getNumResponseClasses, getOffsetName, getOrigNumCols, getOutputDomains, getOutputNames, getPrediction, getPredictionBinomial, getPredictionMultinomial, getPredsSize, getPredsSize, getResponseIdx, getResponseName, GLM_identityInv, GLM_inverseInv, GLM_logInv, GLM_logitInv, GLM_ologitInv, GLM_tweedieInv, img2pixels, internal_threadSafeInstance, isAutoEncoder, isClassifier, KMeans_closest, KMeans_distance, KMeans_distance, KMeans_distances, Kmeans_preprocessData, Kmeans_preprocessData, KMeans_simplex, log_rescale, mapEnum, nCatFeatures, requiresOffset, setCats, setCats, setInput, setInput
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convert, convert
public DrfMojoModel(java.lang.String[] columns, java.lang.String[][] domains, java.lang.String responseColumn)
protected PredictContributions getContributionsPredictor(TreeSHAPPredictor<double[]> treeSHAPPredictor)
getContributionsPredictor
in class SharedTreeMojoModelWithContributions
public final double[] score0(double[] row, double offset, double[] preds)
public final double[] unifyPreds(double[] row, double offset, double[] preds)
SharedTreeMojoModel
unifyPreds
in class SharedTreeMojoModel
row
- input row.offset
- offset.preds
- final output, same structure as of GenModel.score0(double[], double[])
.public double[] score0(double[] row, double[] preds)
GenModel
public boolean isBinomialDoubleTrees()