dcase_util.processors.RepositoryAggregationProcessor
- class dcase_util.processors.RepositoryAggregationProcessor(win_length_frames=10, hop_length_frames=1, recipe=None, **kwargs)[source]
Data aggregation processor
Constructor
- Parameters
- recipelist of dict or list of str
Aggregation recipe, supported methods [mean, std, cov, kurtosis, skew, flatten].
- win_length_framesint
Window length in feature frames
- hop_length_framesint
Hop length in feature frames
- __init__(win_length_frames=10, hop_length_frames=1, recipe=None, **kwargs)[source]
Constructor
- Parameters
- recipelist of dict or list of str
Aggregation recipe, supported methods [mean, std, cov, kurtosis, skew, flatten].
- win_length_framesint
Window length in feature frames
- hop_length_framesint
Hop length in feature frames
Methods
__init__([win_length_frames, ...])Constructor
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])Process
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
bytesFile size in bytes
input_typeInput data type
loggerLogger instance
md5Checksum for file.
output_typeOutput data type
valid_formatsValid file formats