Abstract Base Class¶
The following class represents the abstract base class for BraTS algorithms.
- class brats.core.brats_algorithm.BraTSAlgorithm(algorithm: Algorithms, algorithms_file_path: Path, task: Task, cuda_devices: str = '0', force_cpu: bool = False)¶
Bases:
ABCThis class serves as the basis for all BraTS algorithms. It provides a common interface and implements the logic for single and batch inference.
- extract_identifier_from_subject_id(subject_id: str) str¶
Extract the index from the subject ID :param subject_id: Subject ID of the input :type subject_id: str
- Returns:
Extracted identifier
- Return type:
str