ShapOptimized
01 Syntax
Microsoft.VisualBasic.Math.Statistics.ShapleyValue.TreeShap.ShapOptimized
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| stdcopy | 1 | Ala C++ std::copy - see http://www.cplusplus.com/reference/algorithm/copy/ (Copies the elements in the range [first,last) into the range beginning at result.) |
| extendPath | 1 | extend our decision path with a fraction of one and zero extensions |
| unwindPath | 1 | undo a previous extension of the decision path |
| unwoundPathSum | 1 | determine what the total permutation weight would be if we unwound a previous extension in the decision path |
| calculateContributions | 1 |
03 Fields
04 Members
stdcopy(
Int32, Int32, Int32)Ala C++ std::copy - see http://www.cplusplus.com/reference/algorithm/copy/ (Copies the elements in the range [first,last) into the range beginning at result.)
extendPath(
Int32, Int32, Double, Double, Int32)extend our decision path with a fraction of one and zero extensions
Parameters
| Name | Type | Description |
|---|---|---|
uniquePathPtr | Int32 | - |
uniqueDepth | Int32 | - |
zeroFraction | Double | - |
oneFraction | Double | - |
featureIndex | Int32 | - |
unwindPath(
Int32, Int32, Int32)undo a previous extension of the decision path
Parameters
| Name | Type | Description |
|---|---|---|
uniquePathPtr | Int32 | - |
uniqueDepth | Int32 | - |
pathIndex | Int32 | - |
unwoundPathSum(
Int32, Int32, Int32)determine what the total permutation weight would be if we unwound a previous extension in the decision path
Parameters
| Name | Type | Description |
|---|---|---|
uniquePathPtr | Int32 | - |
uniqueDepth | Int32 | - |
pathIndex | Int32 | - |
DEBUG
toggles the verbose tracing output of the recursion. it is disabled by default because the tracing also crashes on the root recursion level (the parent feature index is negative there).
pathArray
temporary variables, for use inside recursion - minimizing number of passed parameters
DEBUG
calculateContributions()