dcase_util.processors.RepositoryNormalizationProcessor

class dcase_util.processors.RepositoryNormalizationProcessor(parameters=None, normalizers=None, filename=None, **kwargs)[source]

Data normalizer to accumulate data statistics inside repository

__init__ method.

Parameters
parametersdict

Pre-calculated statistics in dict to initialize internal state, label as key Default value None

normalizerNormalizer

Normalizer object to initialize the processor, label as key Default value None

filenamestr

Filename to saved normalizer object to initialize the processor Default value None

__init__(parameters=None, normalizers=None, filename=None, **kwargs)[source]

__init__ method.

Parameters
parametersdict

Pre-calculated statistics in dict to initialize internal state, label as key Default value None

normalizerNormalizer

Normalizer object to initialize the processor, label as key Default value None

filenamestr

Filename to saved normalizer object to initialize the processor Default value None

Methods

__init__([parameters, normalizers, filename])

__init__ method.

delimiter([exclude_delimiters])

Use csv.sniffer to guess delimiter for CSV file

detect_file_format([filename])

Detect file format from extension

empty()

Check if file is empty

exists()

Checks that file exists

get_file_information()

Get file information, filename

get_processing_chain_item()

Get processing chain item with current Processor data.

is_package([filename])

Determine if the file is compressed package.

load([filename])

Load file

log([level])

Log container content

process([data, store_processing_chain])

Normalize data repository with internal statistics

save([filename])

Save file

show([mode, indent, visualize])

Print container content

to_html([indent])

Get container information in a HTML formatted string

to_string([ui, indent])

Get container information in a string

validate_format()

Validate file format

Attributes

bytes

File size in bytes

input_type

logger

Logger instance

md5

Checksum for file.

output_type

valid_formats

Valid file formats