dcase_util.data.Stacker
- class dcase_util.data.Stacker(recipe=None, hop=1, **kwargs)[source]
Data stacker
Constructor
- Parameters
- recipedict or str
Stacking recipe Default value None
- hopint, optional
Data item hopping Default value 1
- __init__(recipe=None, hop=1, **kwargs)[source]
Constructor
- Parameters
- recipedict or str
Stacking recipe Default value None
- hopint, optional
Data item hopping Default value 1
Methods
__init__
([recipe, hop])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
is_package
([filename])Determine if the file is compressed package.
load
([filename])Load file
log
([level])Log container content
save
([filename])Save file
show
([mode, indent, visualize])Print container content
stack
(repository, **kwargs)Vector creation based on recipe
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
logger
Logger instance
md5
Checksum for file.
valid_formats
Valid file formats