public class UpliftDrfMojoModel extends SharedTreeMojoModel
SharedTreeMojoModel.AuxInfo, SharedTreeMojoModel.DecisionPathTracker<T>, SharedTreeMojoModel.LeafDecisionPathTracker, SharedTreeMojoModel.LeafNodeAssignments, SharedTreeMojoModel.StringDecisionPathTracker
Modifier and Type | Field and Description |
---|---|
protected double[] |
_thresholds |
__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 |
---|
UpliftDrfMojoModel(java.lang.String[] columns,
java.lang.String[][] domains,
java.lang.String responseColumn,
java.lang.String treatmentColumn) |
Modifier and Type | Method and Description |
---|---|
double |
getInitF() |
int |
getPredsSize()
Returns the expected size of preds array which is passed to `predict(double[], double[])` function.
|
int |
getPredsSize(ModelCategory mc) |
double[] |
getThresholds() |
double[] |
score0(double[] row,
double[] preds)
Subclasses implement the scoring logic.
|
double[] |
unifyPreds(double[] row,
double offset,
double[] preds)
Transforms tree predictions into the final model predictions.
|
_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, 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, setCats, setCats, setInput, setInput
public UpliftDrfMojoModel(java.lang.String[] columns, java.lang.String[][] domains, java.lang.String responseColumn, java.lang.String treatmentColumn)
public 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 double getInitF()
public double[] getThresholds()
public int getPredsSize()
GenModel
getPredsSize
in interface IGeneratedModel
getPredsSize
in class GenModel
public int getPredsSize(ModelCategory mc)
getPredsSize
in class GenModel