dqa.tasks.ml.LabelExtractionTask#
- class dqa.tasks.ml.LabelExtractionTask(main_dataset: str | List[str], label_dataset: str, keep_labels_dataset: bool = False, **kwargs)#
Abstract basis class for a task that extracts labels from a separate dataset into one or multiple main datasets.
Provides methods modify_main_* which work like the usual modify_* methods of the Task class with the difference that the list of measurements from the label dataset is also passed as an argument. These methods can be overriden in subclasses.
- Parameters:
main_dataset_name (str or list of str) – One or multiple names of datasets containing the main data.
label_dataset (str) – One name of the dataset containing the labels. They should be in the ‘M0’ machine.
keep_labels_dataset (bool) – Indicates if the label dataset should be retained. Otherwise it will be removed.
Methods
finish
()Can perform actions that are required to clean up after the task has finished, e.g. close network connections etc.
in_out_default
input_output_dataset
input_output_machine
input_output_mode
input_output_name
log
modify_data_row
modify_dataset
modify_dataset_dict
modify_machine
modify_main_dataset
modify_main_machine
modify_main_measurement
modify_measurement
set_logging_level
transfer_metadata