nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Math.Statistics / ShapOptimized

ShapOptimized

Full name Microsoft.VisualBasic.Math.Statistics.ShapleyValue.TreeShap.ShapOptimized Assembly Microsoft.VisualBasic.Math.Statistics Members 8

01 Syntax

Microsoft.VisualBasic.Math.Statistics.ShapleyValue.TreeShap.ShapOptimized

02 Methods

NameOverloadsSummary
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

NameOverloadsSummary
DEBUG 2 toggles the verbose tracing output of the recursion.
pathArray 1 temporary variables, for use inside recursion - minimizing number of passed parameters

04 Members

method stdcopy #
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.)

method extendPath #
extendPath(Int32, Int32, Double, Double, Int32)

extend our decision path with a fraction of one and zero extensions

Parameters
NameTypeDescription
uniquePathPtrInt32

-

uniqueDepthInt32

-

zeroFractionDouble

-

oneFractionDouble

-

featureIndexInt32

-

method unwindPath #
unwindPath(Int32, Int32, Int32)

undo a previous extension of the decision path

Parameters
NameTypeDescription
uniquePathPtrInt32

-

uniqueDepthInt32

-

pathIndexInt32

-

method unwoundPathSum #
unwoundPathSum(Int32, Int32, Int32)

determine what the total permutation weight would be if we unwound a previous extension in the decision path

Parameters
NameTypeDescription
uniquePathPtrInt32

-

uniqueDepthInt32

-

pathIndexInt32

-

field DEBUG #
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).

field pathArray #
pathArray

temporary variables, for use inside recursion - minimizing number of passed parameters

field DEBUG overload 2 #
DEBUG
method calculateContributions #
calculateContributions()