audiblelight.class_mappings.DCASE2025Task4#

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

Bases: ClassMapping

Class mappings used for DCASE2025, task 4.

See https://dcase.community/challenge2025/task-spatial-semantic-segmentation-of-sound-scenes#audio-dataset

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 = 4#
YEAR = 2025#
property mapping: dict[int, str]#

“class_index”

Type:

Returns a mapping of “class_name”