Module org.elasticsearch.xcore
Class ShapPath
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.trainedmodel.ShapPath
Ported from https://github.com/elastic/ml-cpp/blob/master/include/maths/CTreeShapFeatureImportance.h Path struct
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintextend(double fractionZero, double fractionOne, int featureIndex, int nextIndex) intfeatureIndex(int pathIndex) intfindFeatureIndex(int splitFeature, int nextIndex) doublefractionOnes(int pathIndex) doublefractionZeros(int pathIndex) doublesumUnwoundPath(int pathIndex, int nextIndex) intunwind(int pathIndex, int nextIndex)
-
Constructor Details
-
ShapPath
-
ShapPath
-
-
Method Details
-
extend
public int extend(double fractionZero, double fractionOne, int featureIndex, int nextIndex) -
sumUnwoundPath
public double sumUnwoundPath(int pathIndex, int nextIndex) -
unwind
public int unwind(int pathIndex, int nextIndex) -
fractionOnes
public double fractionOnes(int pathIndex) -
fractionZeros
public double fractionZeros(int pathIndex) -
findFeatureIndex
public int findFeatureIndex(int splitFeature, int nextIndex) -
featureIndex
public int featureIndex(int pathIndex)
-