core.services.utils.dataset_logging¶
dataset_logging
¶
Functions:
Name | Description |
---|---|
get_labelmap |
Retrieves the label map from a dataset version. |
log_labelmap |
Logs the label map to an experiment. |
get_labelmap(dataset_version)
¶
Retrieves the label map from a dataset version.
This function generates a dictionary that maps label names to their corresponding label objects from a given dataset version.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
DatasetVersion
|
The dataset version from which to retrieve the label map. |
required |
Returns:
Type | Description |
---|---|
dict[str, Label]
|
dict[str, Label]: A dictionary mapping label names to their corresponding Label objects. |
log_labelmap(labelmap, experiment, log_name)
¶
Logs the label map to an experiment.
This function logs the label map to a specified experiment in a tabular format.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
dict[str, Label]
|
A dictionary mapping label names to Label objects. |
required |
|
Experiment
|
The experiment where the label map will be logged. |
required |
|
str
|
The name under which the label map will be logged. |
required |