Skip to content

API Reference

Full reference for all public modules in the HGP library.

Module Description
Algorithms BooleanGP — the core GP algorithm
Configs BooleanGPConfig, TrainerConfig, BenchmarkerConfig
Trainers GPTrainer — high-level training loop
Benchmarkers GPBenchmarker — multi-run benchmarking
Rules Rule, Literal, And, Or — rule tree nodes
Mutations Literal and operator mutations, MutationExecutor
Crossover CrossoverExecutor — subtree crossover
Selections Tournament, roulette selection strategies
Populations Population generation and sampling strategies
Preprocessing StandardBinarizer, load_data
Metrics GenerationMetrics, PopulationHistory, RunResult, ExperimentResult
Utils Validation helpers, scoring utilities