Bound Method

GitHub Link to Code.

Pickleable bound method implementation for feature analysis.

This file provides the BoundMethod class that implements a serializable class for binding analysis methods to feature data.

class mdxplain.feature.helper.bound_method.BoundMethod(feature_data: FeatureData, original_method: Callable, method_name: str, requires_full_data: Set[str])

Pickleable bound method without closure dependencies.

__init__(feature_data: FeatureData, original_method: Callable, method_name: str, requires_full_data: Set[str])

Initialize bound method.

Parameters

feature_dataFeatureData

Feature data object with data

original_methodCallable

Original calculator analysis method

method_namestr

Name of the method

requires_full_dataSet[str]

Set of method names that require full data

Returns

None