Processors

Data processor classes.

Processing chain

ProcessingChainItem

dcase_util.processors.ProcessingChainItem

ProcessingChainItem(*args, **kwargs)

ProcessingChain

dcase_util.processors.ProcessingChain

ProcessingChain(*args, **kwargs)

__init__ method.

ProcessingChain.show_chain()

Show chain information.

ProcessingChain.log_chain([level])

Log chain information

ProcessingChain.push_processor(processor_name)

Push processor item to the chain, if item already exists in the processing chain update only parameters.

ProcessingChain.process([data, ...])

Process the data with processing chain

ProcessingChain.processor_exists(processor_name)

Checks that processor exists in the chain.

ProcessingChain.processor_class_reference(...)

Processor class reference.

ProcessingChain.processor_class(...)

Processor class initialized.

ProcessingChain.chain_item_exists(processor_name)

Check if item exists already in the chain

ProcessingChain.chain_item(processor_name)

Get item based processor_name from the processing chain.

ProcessingChain.call_method(method_name[, ...])

Call class method in the processing chain items

Audio

AudioReadingProcessor

dcase_util.processors.AudioReadingProcessor

AudioReadingProcessor([data, fs, ...])

Constructor

AudioReadingProcessor.process([data, ...])

Audio reading

MonoAudioReadingProcessor

dcase_util.processors.MonoAudioReadingProcessor

MonoAudioReadingProcessor([data, fs, ...])

Constructor

MonoAudioReadingProcessor.process([data, ...])

Audio reading

AudioWritingProcessor

dcase_util.processors.AudioWritingProcessor

AudioWritingProcessor(*args, **kwargs)

Constructor

AudioWritingProcessor.process([data, ...])

Audio writing

MonoAudioWritingProcessor

dcase_util.processors.MonoAudioWritingProcessor

MonoAudioWritingProcessor(*args, **kwargs)

Constructor

MonoAudioWritingProcessor.process([data, ...])

Audio writing

Data

AggregationProcessor

dcase_util.processors.AggregationProcessor

AggregationProcessor([win_length_frames, ...])

Data aggregation processor

AggregationProcessor.process([data, ...])

Process

RepositoryAggregationProcessor

dcase_util.processors.RepositoryAggregationProcessor

RepositoryAggregationProcessor([...])

Data aggregation processor

RepositoryAggregationProcessor.process([...])

Process

SequencingProcessor

dcase_util.processors.SequencingProcessor

SequencingProcessor([sequence_length, ...])

Data sequencing processor

SequencingProcessor.process([data, ...])

Process

RepositorySequencingProcessor

dcase_util.processors.RepositorySequencingProcessor

RepositorySequencingProcessor([...])

Data sequencing processor

RepositorySequencingProcessor.process([...])

Process

NormalizationProcessor

dcase_util.processors.NormalizationProcessor

NormalizationProcessor([n, s1, s2, mean, ...])

Data normalizer to accumulate data statistics

NormalizationProcessor.process([data, ...])

Normalize feature matrix with internal statistics of the class

RepositoryNormalizationProcessor

dcase_util.processors.RepositoryNormalizationProcessor

RepositoryNormalizationProcessor([...])

Data normalizer to accumulate data statistics inside repository

RepositoryNormalizationProcessor.process([...])

Normalize data repository with internal statistics

StackingProcessor

dcase_util.processors.StackingProcessor

StackingProcessor([recipe, hop])

Data stacking processor

StackingProcessor.process([data, ...])

Vector creation based on recipe

RepositoryMaskingProcessor

dcase_util.processors.RepositoryMaskingProcessor

RepositoryMaskingProcessor(**kwargs)

Data masking processor

RepositoryMaskingProcessor.process(data[, ...])

Vector creation based on recipe

OneHotEncodingProcessor

dcase_util.processors.OneHotEncodingProcessor

OneHotEncodingProcessor([label_list, ...])

One hot encoding processor

OneHotEncodingProcessor.process([data, ...])

Encode metadata

ManyHotEncodingProcessor

dcase_util.processors.ManyHotEncodingProcessor

ManyHotEncodingProcessor([label_list, ...])

Many hot encoding processor

ManyHotEncodingProcessor.process([data, ...])

Encode metadata

EventRollEncodingProcessor

dcase_util.processors.EventRollEncodingProcessor

EventRollEncodingProcessor([label_list, ...])

Event roll encoding processor

EventRollEncodingProcessor.process([data, ...])

Encode metadata

OneHotLabelEncodingProcessor

dcase_util.processors.OneHotLabelEncodingProcessor

OneHotLabelEncodingProcessor([label_list, ...])

One hot label encoding processor

OneHotLabelEncodingProcessor.process([data, ...])

Encode metadata

DataShapingProcessor

dcase_util.processors.DataShapingProcessor

DataShapingProcessor([axis_list, time_axis, ...])

Data shaping processor

DataShapingProcessor.process([data, ...])

Process data

RepositoryToMatrixProcessor

dcase_util.processors.RepositoryToMatrixProcessor

RepositoryToMatrixProcessor([label, ...])

Repository converting processor

RepositoryToMatrixProcessor.process([data, ...])

Process data

Features

FeatureReadingProcessor

dcase_util.processors.FeatureReadingProcessor

FeatureReadingProcessor(*args, **kwargs)

Constructor

FeatureReadingProcessor.process([data, ...])

Data reading.

FeatureWritingProcessor

dcase_util.processors.FeatureWritingProcessor

FeatureWritingProcessor(*args, **kwargs)

Constructor

FeatureWritingProcessor.process([data, ...])

Data writing.

RepositoryFeatureReadingProcessor

dcase_util.processors.RepositoryFeatureReadingProcessor

RepositoryFeatureReadingProcessor(*args, ...)

Constructor

RepositoryFeatureReadingProcessor.process([...])

Data repository reading.

RepositoryFeatureWritingProcessor

dcase_util.processors.RepositoryFeatureWritingProcessor

RepositoryFeatureWritingProcessor(*args, ...)

Constructor

RepositoryFeatureWritingProcessor.process([...])

Data repository writing.

RepositoryFeatureExtractorProcessor

dcase_util.processors.RepositoryFeatureExtractorProcessor

RepositoryFeatureExtractorProcessor([parameters])

Constructor

RepositoryFeatureExtractorProcessor.process([...])

Extract features

FeatureExtractorProcessor

dcase_util.processors.FeatureExtractorProcessor

FeatureExtractorProcessor(*args, **kwargs)

Constructor

FeatureExtractorProcessor.process([data, ...])

Extract features

RepositoryFeatureExtractorProcessor

dcase_util.processors.RepositoryFeatureExtractorProcessor

RepositoryFeatureExtractorProcessor([parameters])

Constructor

RepositoryFeatureExtractorProcessor.process([...])

Extract features

MelExtractorProcessor

dcase_util.processors.MelExtractorProcessor

MelExtractorProcessor([fs, ...])

Constructor

MelExtractorProcessor.process([data, ...])

Extract features

MfccStaticExtractorProcessor

dcase_util.processors.MfccStaticExtractorProcessor

MfccStaticExtractorProcessor([fs, ...])

Constructor

MfccStaticExtractorProcessor.process([data, ...])

Extract features

MfccDeltaExtractorProcessor

dcase_util.processors.MfccDeltaExtractorProcessor

MfccDeltaExtractorProcessor([fs, ...])

Constructor

MfccDeltaExtractorProcessor.process([data, ...])

Extract features

MfccAccelerationExtractorProcessor

dcase_util.processors.MfccAccelerationExtractorProcessor

MfccAccelerationExtractorProcessor([fs, ...])

Constructor

MfccAccelerationExtractorProcessor.process([...])

Extract features

ZeroCrossingRateExtractorProcessor

dcase_util.processors.ZeroCrossingRateExtractorProcessor

ZeroCrossingRateExtractorProcessor([fs, ...])

Constructor

ZeroCrossingRateExtractorProcessor.process([...])

Extract features

RMSEnergyExtractorProcessor

dcase_util.processors.RMSEnergyExtractorProcessor

RMSEnergyExtractorProcessor([fs, ...])

Constructor

RMSEnergyExtractorProcessor.process([data, ...])

Extract features

SpectralCentroidExtractorProcessor

dcase_util.processors.SpectralCentroidExtractorProcessor

SpectralCentroidExtractorProcessor([fs, ...])

Constructor

SpectralCentroidExtractorProcessor.process([...])

Extract features

OpenL3ExtractorProcessor

dcase_util.processors.OpenL3ExtractorProcessor

OpenL3ExtractorProcessor([fs, ...])

Constructor

OpenL3ExtractorProcessor.process([data, ...])

Extract features

TorchOpenL3ExtractorProcessor

dcase_util.processors.TorchOpenL3ExtractorProcessor

TorchOpenL3ExtractorProcessor([fs, ...])

Constructor

TorchOpenL3ExtractorProcessor.process([...])

Extract features

EdgeL3ExtractorProcessor

dcase_util.processors.EdgeL3ExtractorProcessor

EdgeL3ExtractorProcessor([fs, ...])

Constructor

EdgeL3ExtractorProcessor.process([data, ...])

Extract features

Metadata

MetadataReadingProcessor

dcase_util.processors.MetadataReadingProcessor

MetadataReadingProcessor(*args, **kwargs)

Constructor

MetadataReadingProcessor.process([data, ...])

Meta data reading.

Base object

Processor

dcase_util.processors.Processor

Processor(*args, **kwargs)

Data processing chain unit mixin

Processor.process([data, store_processing_chain])

Process data

Processor.get_processing_chain_item()

Get processing chain item with current Processor data.