seqgra.parser.xmlmodeldefinitionparser module

MIT - CSAIL - Gifford Lab - seqgra

Implementation of Parser for XML configuration files (using Strategy design pattern)

@author: Konstantin Krismer

class XMLModelDefinitionParser(config: str, silent: bool = False)[source]

Bases: seqgra.parser.modeldefinitionparser.ModelDefinitionParser

The Strategy interface declares operations common to all supported versions of some algorithm.

The Context uses this interface to call the algorithm defined by Concrete Strategies.

get_architecture() → seqgra.model.model.architecture.Architecture[source]
get_description() → str[source]
get_implementation() → str[source]
get_input_encoding() → str[source]
get_labels() → List[str][source]
get_library() → str[source]
get_loss_hyperparameters() → Dict[str, str][source]
get_model_definition() → seqgra.model.model.modeldefinition.ModelDefinition[source]
get_model_id() → str[source]
get_name() → str[source]
get_optimizer_hyperparameters() → Dict[str, str][source]
get_seed() → str[source]
get_sequence_space() → str[source]
get_task() → str[source]
get_training_process_hyperparameters() → Dict[str, str][source]
validate(xml_config: str) → None[source]