public class TreeSHAPEnsemble<R> extends java.lang.Object implements TreeSHAPPredictor<R>
| Constructor and Description |
|---|
TreeSHAPEnsemble(java.util.Collection<TreeSHAPPredictor<R>> predictors,
float initPred) |
| Modifier and Type | Method and Description |
|---|---|
float[] |
calculateContributions(R feat,
float[] out_contribs) |
float[] |
calculateContributions(R feat,
float[] out_contribs,
int condition,
int condition_feature,
java.lang.Object workspace) |
int |
getWorkspaceSize() |
java.lang.Object |
makeWorkspace() |
public TreeSHAPEnsemble(java.util.Collection<TreeSHAPPredictor<R>> predictors, float initPred)
public float[] calculateContributions(R feat, float[] out_contribs)
calculateContributions in interface TreeSHAPPredictor<R>public float[] calculateContributions(R feat, float[] out_contribs, int condition, int condition_feature, java.lang.Object workspace)
calculateContributions in interface TreeSHAPPredictor<R>public java.lang.Object makeWorkspace()
makeWorkspace in interface TreeSHAPPredictor<R>public int getWorkspaceSize()
getWorkspaceSize in interface TreeSHAPPredictor<R>