fitness
FitnessBase
Bases: HashableBaseModelIO
create
classmethod
create(
fitness: Union["FitnessBase", Type["FitnessBase"], str, None] = None,
**kwargs
) -> "FitnessBase"
Create a fitness object from the input.
PARAMETER | DESCRIPTION |
---|---|
fitness
|
Custom fitness object or class or the full name of the class, by default None
TYPE:
|
kwargs
|
Additional keyword arguments to pass to the fitness object
DEFAULT:
|
RETURNS | DESCRIPTION |
---|---|
FitnessBase
|
The fitness object |
evaluate
Evaluate the fitness function, return the fitness and weights
lineOption
lineOption(
option: str,
experiment_name: str,
*,
option_name: str = "line_{option}",
experiment_option_name="line_experiment_{option}"
) -> Any
Get line options or experiment-specific line options.
match
classmethod
Check if the name matches any of the given patterns.