Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BitStringIndividualConfig ¶ added in v1.1.0
type BitStringIndividualConfig struct {
Enabled bool `toml:"enabled"`
GenomeSize int `toml:"genome_size"`
}
BitStringIndividualConfig holds configuration for bitstring individuals.
type Config ¶
type Config struct {
Evolution EvolutionConfig `toml:"evolution"`
BitString BitStringIndividualConfig `toml:"bitstring_individual"`
Tree TreeIndividualConfig `toml:"tree_individual"`
Metrics MetricsConfig `toml:"metrics"`
Fitness FitnessConfig `toml:"fitness"`
}
Config holds the entire configuration for the evolutionary algorithm.
func LoadConfig ¶
type EvolutionConfig ¶
type EvolutionConfig struct {
PopulationSize int `toml:"population_size"`
CrossoverPointCount int `toml:"crossover_point_count"`
CrossoverRate float64 `toml:"crossover_rate"`
MutationRate float64 `toml:"mutation_rate"`
Generations int `toml:"generations"`
ElitismPercentage float64 `toml:"elitism_percentage"`
Seed int64 `toml:"seed"`
}
EvolutionConfig holds configuration for the evolutionary algorithm.
type FitnessConfig ¶ added in v1.7.0
type MetricsConfig ¶ added in v1.5.0
MetricsConfig holds configuration for metrics output.
type TreeIndividualConfig ¶ added in v1.1.0
type TreeIndividualConfig struct {
Enabled bool `toml:"enabled"`
MaxDepth int `toml:"max_depth"`
InitalDepth int `toml:"initial_depth"`
PrimitiveSet []string `toml:"primitive_set"`
TerminalSet []string `toml:"terminal_set"`
}
TreeIndividualConfig holds configuration for tree individuals.
Click to show internal directories.
Click to hide internal directories.