public abstract class SharedTreeMojoModelWithContributions extends SharedTreeMojoModel implements PredictContributionsFactory
Modifier and Type | Class and Description |
---|---|
protected static class |
SharedTreeMojoModelWithContributions.SharedTreeContributionsPredictor |
SharedTreeMojoModel.AuxInfo, SharedTreeMojoModel.DecisionPathTracker<T>, SharedTreeMojoModel.LeafDecisionPathTracker, SharedTreeMojoModel.LeafNodeAssignments, SharedTreeMojoModel.StringDecisionPathTracker
__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
Modifier | Constructor and Description |
---|---|
protected |
SharedTreeMojoModelWithContributions(java.lang.String[] columns,
java.lang.String[][] domains,
java.lang.String responseColumn) |
Modifier and Type | Method and Description |
---|---|
protected abstract PredictContributions |
getContributionsPredictor(TreeSHAPPredictor<double[]> treeSHAPPredictor) |
double |
getInitF() |
PredictContributions |
makeContributionsPredictor()
Create an instance of PredictContributions
The returned implementation is not guaranteed to be thread-safe and the caller is responsible for making sure
each thread will have own copy of the instance
|
_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, unifyPreds, 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, score0, score0, setCats, setCats, setInput, setInput
protected SharedTreeMojoModelWithContributions(java.lang.String[] columns, java.lang.String[][] domains, java.lang.String responseColumn)
public PredictContributions makeContributionsPredictor()
PredictContributionsFactory
makeContributionsPredictor
in interface PredictContributionsFactory
public double getInitF()
getInitF
in interface TreeBackedMojoModel
protected abstract PredictContributions getContributionsPredictor(TreeSHAPPredictor<double[]> treeSHAPPredictor)