Skip to main content

ga_trial_calculation_algorithm_bronze

Algorithm for calculating the GA area.

Classes

GATrialCalculationAlgorithmBronze

class GATrialCalculationAlgorithmBronze(    datastructure: DataStructure,    ga_area_include_segmentations: Optional[list[str]] = None,    ga_area_exclude_segmentations: Optional[list[str]] = None,    fovea_landmark_idx: int = 1,    **kwargs: Any,):

Algorithm for calculating the GA Area and associated metrics.

Arguments

  • ga_area_include_segmentations: List of segmentation labels to be used for calculating the GA area. The logical AND of the masks for these labels will be used to calculate the GA area. If not provided, the default inclusion labels for the GA area will be used.
  • ga_area_exclude_segmentations: List of segmentation labels to be excluded from calculating the GA area. If any of these segmentations are present in the axial segmentation masks, that axis will be excluded from the GA area calculation. If not provided, the default exclusion labels for the GA area will be used.
  • fovea_landmark_idx: index of the fovea landmark in the tuple. 0 for fovea start, 1 for fovea middle, 2 for fovea end. Default is 1.

Raises

  • ValueError: If an invalid segmentation label is provided.
  • ValueError: If a segmentation label is provided in both the include and exclude lists.

Ancestors

Variables

  • static fields_dict : ClassVar[T_FIELDS_DICT]

Methods


modeller

def modeller(    self, **kwargs: Any,)> NoResultsModellerAlgorithm:

Modeller-side of the algorithm.

worker

def worker(    self,    **kwargs: Any,)> bitfount.federated.algorithms.ophthalmology.ga_trial_calculation_algorithm_bronze._WorkerSide:

Worker-side of the algorithm.