langtest.transform.clinical.ClinicalTestFactory#
- class ClinicalTestFactory(data_handler: List[Sample], tests: Dict | None = None, **kwargs)#
Bases:
ITests
Factory class for the clinical tests
- __init__(data_handler: List[Sample], tests: Dict | None = None, **kwargs) None #
Initializes the ClinicalTestFactory
Methods
__init__
(data_handler[, tests])Initializes the ClinicalTestFactory
Returns the empty dict, no clinical tests
run
(sample_list, model, **kwargs)Runs the specified tests on the given data and returns a list of results.
Nothing to use transform for no longer to generating testcases.
Attributes
alias_name
supported_tasks
- classmethod available_tests() Dict[str, BaseClincial | ClinicalTestFactory] #
Returns the empty dict, no clinical tests
- Returns:
Empty dict, no clinical tests
- Return type:
Dict[str, str]
- classmethod run(sample_list: Dict[str, List[Sample]], model: ModelAPI, **kwargs) List[Sample] #
Runs the specified tests on the given data and returns a list of results.
- Parameters:
sample_list (Dict[str, List[Sample]]) – A dictionary mapping test scenario names to a list of Sample objects.
model (ModelAPI) – A ModelAPI object representing the model to be tested.
- Returns:
A list of Sample objects with the test results.
- Return type:
List[Sample]
- transform() List[Sample] #
Nothing to use transform for no longer to generating testcases.
- Returns:
Empty list