audiblelight.class_mappings.DCASE2020Task3#

class audiblelight.class_mappings.DCASE2020Task3(mapping=None)#

Bases: ClassMapping

Class mappings used for DCASE2020, task 3.

See https://dcase.community/challenge2020/task-sound-event-localization-and-detection#sound-event-classes

Parameters:

mapping (dict[str, int] | None)

__init__(mapping=None)#
Parameters:

mapping (dict[str, int] | None)

Methods

__init__([mapping])

from_dict(input_dict)

Compute a class mapping from a dictionary

infer_label_idx_from_filepath(filepath)

Given a filepath, infer the class label and index from this.

infer_missing_values(class_id, class_label)

Infers missing class ID or label if only one is provided.

to_dict()

Returns the class mapping as a dictionary

validate_mapping()

Validates mapping after class initialization

Attributes

TASK

YEAR

mapping

"class_index"

mapping_inverted

"class_name

TASK = 3#
YEAR = 2020#
property mapping: dict[str, int]#

“class_index”

Type:

Returns a mapping of “class_name”