Bound Stats

GitHub Link to Code.

Container for bound analysis methods.

This file provides the BoundStats class that serves as a container for dynamically bound analysis methods on feature data objects.

class mdxplain.feature.helper.bound_stats.BoundStats

Container for bound analysis methods.

This class serves as a dynamic container that holds bound analysis methods which are created by the FeatureBindingHelper. Analysis methods are bound to feature data at runtime and automatically use the appropriate data (original or reduced) based on the feature state.

It is more like a namespace for methods than a traditional class.

Examples

>>> # BoundStats is typically created automatically
>>> feature_data.analysis.compute_mean()  # Uses bound method
>>> feature_data.analysis.compute_std()   # Uses bound method