dcase_util.data.ProbabilityEncoder

class dcase_util.data.ProbabilityEncoder(label_list=None, **kwargs)[source]

Constructor

Parameters
label_listlist of str

Label list

__init__(label_list=None, **kwargs)[source]

Constructor

Parameters
label_listlist of str

Label list

Methods

__init__([label_list])

Constructor

binarization(probabilities[, ...])

Binarization

collapse_probabilities(probabilities[, ...])

Collapse probabilities along time_axis

collapse_probabilities_windowed(...[, ...])

Collapse probabilities with a sliding window.

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

max_selection(probabilities[, label_list])

Selection based on maximum probability

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

logger

Logger instance

md5

Checksum for file.

valid_formats

Valid file formats