config_schemas
Dataclasses to hold the configuration details for the runners.
Classes
APIKeys
class APIKeys(access_key_id: str, access_key: str):
API keys for BitfountSession.
AccessManagerConfig
class AccessManagerConfig(url: str = 'https://am.hub.bitfount.com'):
Configuration for the access manager.
Variables
- static
url : str
AggregatorConfig
class AggregatorConfig( secure: bool, weights: Optional[dict[str, Union[int, float]]] = None,):
Configuration for the Aggregator.
AlgorithmConfig
class AlgorithmConfig(name: str, arguments: Optional[Any] = None):
Configuration for the Algorithm.
Subclasses
- CSVReportAlgorithmConfig
- CSVReportGeneratorOphthalmologyAlgorithmConfig
- ETDRSAlgorithmConfig
- FoveaCoordinatesAlgorithmConfig
- GATrialCalculationAlgorithmJadeConfig
- GATrialPDFGeneratorAlgorithmAmethystConfig
- GATrialPDFGeneratorAlgorithmJadeConfig
- GenericAlgorithmConfig
- HuggingFaceImageClassificationInferenceAlgorithmConfig
- HuggingFaceImageSegmentationInferenceAlgorithmConfig
- HuggingFacePerplexityEvaluationAlgorithmConfig
- HuggingFaceTextClassificationInferenceAlgorithmConfig
- HuggingFaceTextGenerationInferenceAlgorithmConfig
- HuggingFaceZeroShotImageClassificationInferenceAlgorithmConfig
- ModelAlgorithmConfig
- PrivateSqlQueryAlgorithmConfig
- SqlQueryAlgorithmConfig
- TIMMFineTuningAlgorithmConfig
- TIMMInferenceAlgorithmConfig
- TrialInclusionCriteriaMatchAlgorithmAmethystConfig
- TrialInclusionCriteriaMatchAlgorithmJadeConfig
- bitfount.runners.config_schemas._SimpleCSVAlgorithmAlgorithmConfig
BitfountModelReferenceConfig
class BitfountModelReferenceConfig( model_ref: Union[Path, str], model_version: Optional[int] = None, username: Optional[str] = None, weights: Optional[str] = None,):
Configuration for BitfountModelReference.
Variables
- static
model_ref : Union[pathlib.Path, str]
- static
model_version : Optional[int]
- static
username : Optional[str]
- static
weights : Optional[str]
CSVReportAlgorithmArgumentsConfig
class CSVReportAlgorithmArgumentsConfig( save_path: Optional[Path] = None, original_cols: Optional[list[str]] = None, filter: Optional[list[ColumnFilter]] = None,):
Configuration for CSVReportAlgorithm arguments.
Variables
- static
filter : Optional[list]
- static
original_cols : Optional[list]
- static
save_path : Optional[pathlib.Path]
CSVReportAlgorithmConfig
class CSVReportAlgorithmConfig( name: str, arguments: Optional[CSVReportAlgorithmArgumentsConfig] = CSVReportAlgorithmArgumentsConfig(save_path=None, original_cols=None, filter=None),):
Configuration for CSVReportAlgorithm.
Ancestors
CSVReportGeneratorOphthalmologyAlgorithmArgumentsConfig
class CSVReportGeneratorOphthalmologyAlgorithmArgumentsConfig( save_path: Optional[Path] = None, trial_name: Optional[str] = None, original_cols: Optional[list[str]] = None, rename_columns: Optional[dict[str, str]] = None, filter: Optional[list[ColumnFilter]] = None, match_patient_visit: Optional[MatchPatientVisit] = None, matched_csv_path: Optional[Path] = None, produce_matched_only: bool = True, csv_extensions: Optional[list[str]] = None, produce_trial_notes_csv: bool = False, sorting_columns: Optional[dict[str, str]] = None,):
Configuration for CSVReportGeneratorOphthalmologyAlgorithm arguments.
Variables
- static
csv_extensions : Optional[list]
- static
filter : Optional[list]
- static
match_patient_visit : Optional[MatchPatientVisit]
- static
matched_csv_path : Optional[pathlib.Path]
- static
original_cols : Optional[list]
- static
produce_matched_only : bool
- static
produce_trial_notes_csv : bool
- static
rename_columns : Optional[dict]
- static
save_path : Optional[pathlib.Path]
- static
sorting_columns : Optional[dict]
- static
trial_name : Optional[str]
CSVReportGeneratorOphthalmologyAlgorithmConfig
class CSVReportGeneratorOphthalmologyAlgorithmConfig( name: str, arguments: Optional[CSVReportGeneratorOphthalmologyAlgorithmArgumentsConfig] = CSVReportGeneratorOphthalmologyAlgorithmArgumentsConfig(save_path=None, trial_name=None, original_cols=None, rename_columns=None, filter=None, match_patient_visit=None, matched_csv_path=None, produce_matched_only=True, csv_extensions=None, produce_trial_notes_csv=False, sorting_columns=None),):
Configuration for CSVReportGeneratorOphthalmologyAlgorithm.
Ancestors
Variables
- static
arguments : Optional[CSVReportGeneratorOphthalmologyAlgorithmArgumentsConfig]
- static
name : str
ConversationArgumentsConfig
class ConversationArgumentsConfig():
Configuration for the Conversation arguments.
ConversationConfig
class ConversationConfig( name: str, arguments: Optional[ConversationArgumentsConfig] = ConversationArgumentsConfig(),):
Configuration for Conversation.
Ancestors
DataSplitConfig
class DataSplitConfig(data_splitter: str = 'percentage', args: _JSONDict = {}):
Configuration for the data splitter.
DataStructureAssignConfig
class DataStructureAssignConfig( target: Optional[Union[str, list[str]]] = None, image_cols: Optional[list[str]] = None, image_prefix: Optional[str] = None,):
Configuration for the datastructure assign argument.
Variables
- static
image_cols : Optional[list]
- static
image_prefix : Optional[str]
- static
target : Union[str, list[str], ForwardRef(None)]
DataStructureConfig
class DataStructureConfig( table_config: DataStructureTableConfig, assign: DataStructureAssignConfig = DataStructureAssignConfig(target=None, image_cols=None, image_prefix=None), select: DataStructureSelectConfig = DataStructureSelectConfig(include=[], include_prefix=None, exclude=[]), transform: DataStructureTransformConfig = DataStructureTransformConfig(dataset=None, batch=None, image=None, auto_convert_grayscale_images=True), data_split: Optional[DataSplitConfig] = None,):
Configuration for the modeller schema and dataset options.
Variables
- static
assign : DataStructureAssignConfig
- static
data_split : Optional[DataSplitConfig]
- static
select : DataStructureSelectConfig
- static
table_config : DataStructureTableConfig
- static
transform : DataStructureTransformConfig
DataStructureSelectConfig
class DataStructureSelectConfig( include: list[str] = [], include_prefix: Optional[str] = None, exclude: list[str] = [],):
Configuration for the datastructure select argument.
DataStructureTableConfig
class DataStructureTableConfig( table: Optional[Union[str, dict[str, str]]] = None, query: Optional[Union[str, dict[str, str]]] = None, schema_types_override: Optional[Union[SchemaOverrideMapping, Mapping[str, SchemaOverrideMapping]]] = None,):
Configuration for the datastructure table arguments.
Variables
- static
query : Union[str, dict[str, str], ForwardRef(None)]
- static
schema_types_override : Union[collections.abc.Mapping[Literal['categorical', 'continuous', 'image', 'text'], list[Union[str, collections.abc.Mapping[str, collections.abc.Mapping[str, int]]]]], collections.abc.Mapping[str, collections.abc.Mapping[Literal['categorical', 'continuous', 'image', 'text'], list[Union[str, collections.abc.Mapping[str, collections.abc.Mapping[str, int]]]]]], ForwardRef(None)]
- static
table : Union[str, dict[str, str], ForwardRef(None)]
DataStructureTransformConfig
class DataStructureTransformConfig( dataset: Optional[list[dict[str, _JSONDict]]] = None, batch: Optional[list[dict[str, _JSONDict]]] = None, image: Optional[list[dict[str, _JSONDict]]] = None, auto_convert_grayscale_images: bool = True,):
Configuration for the datastructure transform argument.
Variables
- static
auto_convert_grayscale_images : bool
- static
batch : Optional[list]
- static
dataset : Optional[list]
- static
image : Optional[list]
DatasourceConfig
class DatasourceConfig( datasource: str, data_config: PodDataConfig = PodDataConfig(force_stypes=None, column_descriptions=None, table_descriptions=None, ignore_cols=None, modifiers=None, datasource_args={}, data_split=DataSplitConfig(data_splitter='percentage', args={}), auto_tidy=False), name: Optional[str] = None, datasource_details_config: Optional[PodDetailsConfig] = None, schema: Optional[Path] = None,):
Datasource configuration for a multi-datasource Pod.
Variables
- static
data_config : PodDataConfig
- static
datasource : str
- static
datasource_details_config : Optional[PodDetailsConfig]
- static
name : Optional[str]
- static
schema : Optional[pathlib.Path]
ETDRSAlgorithmArgumentsConfig
class ETDRSAlgorithmArgumentsConfig( laterality: str, slo_photo_location_prefixes: Optional[SLOSegmentationLocationPrefix] = None, slo_image_metadata_columns: Optional[SLOImageMetadataColumns] = None, oct_image_metadata_columns: Optional[OCTImageMetadataColumns] = None, threshold: float = 0.7, calculate_on_oct: bool = False, slo_mm_width: float = 8.8, slo_mm_height: float = 8.8,):
Configuration for ETDRSAlgorithm arguments.
Variables
- static
calculate_on_oct : bool
- static
laterality : str
- static
oct_image_metadata_columns : Optional[OCTImageMetadataColumns]
- static
slo_image_metadata_columns : Optional[SLOImageMetadataColumns]
- static
slo_mm_height : float
- static
slo_mm_width : float
- static
slo_photo_location_prefixes : Optional[SLOSegmentationLocationPrefix]
- static
threshold : float
ETDRSAlgorithmConfig
class ETDRSAlgorithmConfig(name: str, arguments: Optional[ETDRSAlgorithmArgumentsConfig]):
Configuration for ETDRSAlgorithm.
Ancestors
FederatedAveragingProtocolArgumentsConfig
class FederatedAveragingProtocolArgumentsConfig( aggregator: Optional[AggregatorConfig] = None, steps_between_parameter_updates: Optional[int] = None, epochs_between_parameter_updates: Optional[int]