langtest.tasks.task.Clinical#
- class Clinical#
Bases:
BaseTask
Clinical category
- __init__()#
Methods
__init__
()column_mapping
(item_keys, columns_names, ...)Return the column mapping.
create_sample
(row_data[, patient_info_A, ...])Create a sample.
load_model
(model_path, model_hub, *args, ...)Load the model.
Attributes
Return the sample class.
task_registry
- column_mapping(item_keys, columns_names, *args, **kwargs)#
Return the column mapping.
- create_sample(row_data: dict, patient_info_A: str = 'Patient info A', patient_info_B: str = 'Patient info B', diagnosis: str = 'Diagnosis', clinical_domain: str = 'clinical_domain', dataset_name: str = 'clinical') ClinicalSample #
Create a sample.
- property get_sample_cls#
Return the sample class.
- classmethod load_model(model_path: str, model_hub: str, *args, **kwargs)#
Load the model.
- sample_class#
alias of
ClinicalSample