ertk.preprocessing.FeatureExtractor

class ertk.preprocessing.FeatureExtractor(config: ERTKConfig)

Bases: InstanceProcessor

Extracts features from instances.

__init__(config: ERTKConfig) None

Methods

Inherited Methods

__init__(config)

finish()

Perform any cleanup necesasry (e.g.

friendly_name()

Get the friendly name for this processor.

get_config_type()

Get the configuration type for this processor.

get_default_config()

Get the default configuration for this processor.

get_processor_class(name)

Get the class for the named processor.

make_processor(name, config)

Create an instance of the named processor.

process_all(xs, batch_size, **kwargs)

Process all instances in batches.

process_batch(batch, **kwargs)

Process a batch of instances.

process_instance(x, **kwargs)

Process a single audio clip.

valid_processors()

Get a list of all registered processor names.

Attributes

dim

The dimensionality of the extracted features.

feature_names

The names of the features produced by this processor.

is_sequence

Whether this FeatureExtractor yields sequence features.

property dim: int

The dimensionality of the extracted features.

abstract property is_sequence: bool

Whether this FeatureExtractor yields sequence features.