pyhctsa.calculator.FeatureCalculator

class pyhctsa.calculator.FeatureCalculator(config_path=None)

A configuration-driven feature extraction calculator for time series data.

config

The parsed YAML configuration containing feature definitions.

Type:

dict

feature_funcs

A dictionary mapping feature labels to their corresponding callable functions.

Type:

dict

Parameters:
config_path : str or None, optional

Path to the YAML configuration file. If None, uses the default ‘hctsa.yaml’ configuration file in the package configurations directory.

Examples

>>> fc = FeatureCalculator()  # Load default configuration
>>> x = np.random.randn(1000)
>>> df = fc.extract(x)
>>> print(fc.summary())
__init__(config_path=None)

Initialises a FeatureCalculator instance.

Parameters:
config_path : str or None, optional

Path to the YAML configuration file. If None, uses the default configuration.

Methods

__init__([config_path])

Initialises a FeatureCalculator instance.

extract(data[, labels, verbose, distributor])

Run the configured feature extractor over one or more time series and return a single tidy pandas.DataFrame.

summary()

Generate a summary of the last feature extraction call.