Skip to main content

ga_trial_pdf_algorithm_amethyst

Algorithm for outputting GA model results to CSV on the pod-side.

Classes

GATrialPDFGeneratorAlgorithmAmethyst

class GATrialPDFGeneratorAlgorithmAmethyst(    *,    report_metadata: ReportMetadata,    filter: Optional[list[ColumnFilter]] = None,    save_path: Optional[Union[str, os.PathLike]] = None,    filename_prefix: Optional[str] = None,    pdf_filename_columns: Optional[list[str]] = None,    trial_name: Optional[str] = None,    **kwargs: Any,):

Algorithm for generating the PDF results report for the GA Algorithm.

Arguments

  • report_metadata: A ReportMetadata for the pdf report metadata fields.
  • filter: A list of ColumnFilter objects to filter the data by.
  • save_path: The folder path where the pdf report should be saved.
  • filename_prefix: The prefix for the pdf filename. Defaults to None.
  • pdf_filename_columns: The columns from the datasource that should be used for the pdf filename. If not provided, the filename will be saved as "Patient_index_i.pdf" where i is the index in the filtered datasource. Defaults to None.

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_pdf_algorithm_amethyst._WorkerSide:

Worker-side of the algorithm.