kernelShapVector

fun kernelShapVector(background: Array<DoubleArray>, numSamples: Int = 0, ridge: Double = 1.0E-8, predictor: Function<DoubleArray, DoubleArray>): KernelSHAP<DoubleArray>(source)

Creates a KernelSHAP explainer for a vector-valued function on DoubleArray.

Return

the KernelSHAP explainer.

Parameters

background

the background reference dataset.

numSamples

maximum number of coalitions to evaluate per instance (0 = auto).

ridge

L2 regularization parameter for numerical stability.

predictor

the vector prediction function.