dcase_util.processors.DataShapingProcessor
- class dcase_util.processors.DataShapingProcessor(axis_list=None, time_axis=None, data_axis=None, sequence_axis=None, channel_axis=None, **kwargs)[source]
Data shaping processor
Constructor
- Parameters
- axis_listlist
List of axis names in order. Use this parameter or set by time_axis, data_axis, and sequence_axis. Default value None
- time_axisint, optional
New data axis for time. Current axis and new axis are swapped. Default value None
- data_axisint, optional
New data axis for data. Current axis and new axis are swapped. Default value None
- sequence_axisint, optional
New data axis for data sequence. Current axis and new axis are swapped. Default value None
- channel_axisint, optional
New data axis for data channel. Current axis and new axis are swapped. Default value None
- __init__(axis_list=None, time_axis=None, data_axis=None, sequence_axis=None, channel_axis=None, **kwargs)[source]
Constructor
- Parameters
- axis_listlist
List of axis names in order. Use this parameter or set by time_axis, data_axis, and sequence_axis. Default value None
- time_axisint, optional
New data axis for time. Current axis and new axis are swapped. Default value None
- data_axisint, optional
New data axis for data. Current axis and new axis are swapped. Default value None
- sequence_axisint, optional
New data axis for data sequence. Current axis and new axis are swapped. Default value None
- channel_axisint, optional
New data axis for data channel. Current axis and new axis are swapped. Default value None
Methods
__init__([axis_list, time_axis, data_axis, ...])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 data
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