Algorithm¶
todo intro text
- class algomancy_scenario.basealgorithm.BaseAlgorithm(name, params)[source]¶
Bases:
ABC- result_class¶
alias of
ScenarioResult
- property params¶
- property data_params: BaseParameterSet¶
The data parameters declared by the input data source for the current run.
Defaults to
EmptyParameters(). The scenario callsset_data_paramswith the user-supplied values beforerun().
- property get_progress: float¶
- property name: str¶
- abstractmethod static initialize_parameters()[source]¶
Initializes parameters for the derived Algorithm, which is necessary for the GUI logic. It should simply return a default object of the associated AlgorithmParameters class.
Example
>>> @staticmethod >>> def initialize_parameters() -> ExampleAlgorithmParams: ... return ExampleAlgorithmParams()
- Raises:
NotImplementedError – If the method is not overridden.
- Returns:
- The initialized set of parameters, derived
from the BaseAlgorithmParameters class.
- Return type:
BASE_PARAMS_BOUND