dcase_util.containers.ProbabilityContainer.as_matrix

ProbabilityContainer.as_matrix(label_list=None, filename=None, file_list=None, default_value=0)[source]

Get probabilities as data matrix. If items has index defined, index is used to order columns. If items has filename, filename is used to order columns.

Parameters
label_listlist of str

List of labels. If none given, labels in the container are used in alphabetical order. Default value None

filenamestr

Filename to filter content. If none given, one given for class constructor is used. Default value None

file_listlist of str

List of filenames to included in the matrix. Default value None

default_valuenumerical

Default value of the element in the matrix. Used in case there is no data for the element in the container.

Returns
DataMatrix2DContainer