culebra.tools.abc.scripts.TrainingTestFitnessFunctionsGenerator class¶
- class TrainingTestFitnessFunctionsGenerator(args: list[str] | None = None)¶
Bases:
GeneratorScriptConstruct the generator.
Define the command-line arguments.
Static methods¶
- static TrainingTestFitnessFunctionsGenerator.load(filename: str) Base¶
Load a serialized object from a file.
- Parameters:
filename (str) – The file name.
- Returns:
The loaded object
- Raises:
TypeError – If filename is not a valid file name
ValueError – If the filename extension is not
SERIALIZED_FILE_EXTENSION
Methods¶
- TrainingTestFitnessFunctionsGenerator.dump(filename: str) None¶
Serialize this object and save it to a file.
- Parameters:
filename (str) – The file name.
- Raises:
TypeError – If filename is not a valid file name
ValueError – If the filename extension is not
SERIALIZED_FILE_EXTENSION
- TrainingTestFitnessFunctionsGenerator.generate() None¶
Generate the training and test fitness functions.
- TrainingTestFitnessFunctionsGenerator.parse_args() None¶
Parse and validate command-line arguments.
- Raises:
SystemExit – If the command-line arguments are invalid or
--helpis requested.
Private methods¶
- TrainingTestFitnessFunctionsGenerator._get_repr_properties() dict[str, object]¶
Return the subset of properties used for
__repr__.Filters and evaluates all class-level
@propertyattributes, returning only those intended for representation purposes. Private properties (names starting with_) are excluded.

