class dcase_framework.metadata.ProbabilityContainer(*args, **kwargs)[source]
__init__(*args, **kwargs)[source]


__init__(\*args, \*\*kwargs)
append L.append(object) – append object to end
detect_file_format(filename) Detect file format from extension
empty() Check if file is empty
exists() Checks that file exists
extend L.extend(iterable) – extend list by appending elements from the iterable
filter([filename, file_list, label]) Filter content
get_dump_content(data) Clean internal content for saving
get_file_information() Get file information, filename
get_string() Get content in string format
index((value, [start, ...) Raises ValueError if the value is not present.
insert L.insert(index, object) – insert object before index
load([filename]) Load probability list from delimited text file (csv-formated)
log([level]) Log container content
pop(...) Raises IndexError if list is empty or index is out of range.
remove L.remove(value) – remove first occurrence of value.
reverse L.reverse() – reverse IN PLACE
save([filename, delimiter]) Save content to csv file
show(\*\*kwargs) Print container content
sort L.sort(cmp=None, key=None, reverse=False) – stable sort IN PLACE;
update(data) Replace content with given list


file_list List of unique files in the container
unique_labels Get unique labels