User-facing wrapper around bioga_main_cpp() with sensible defaults and
input validation. The algorithm minimises two objectives; in "binary"
mode pass class labels so that the first objective measures the predictive
signal of the selected genes.
Arguments
- genomic_data
Numeric matrix of genomic data (rows: genes, columns: samples).
- population_size
Number of individuals in the population.
- num_generations
Number of generations to run.
- crossover_rate
Probability of crossover.
- mutation_rate
Base probability of mutation.
- num_parents
Number of parents selected per generation.
- num_offspring
Number of offspring generated per generation.
- num_to_replace
Maximum number of offspring admitted per generation.
- weights
Numeric vector of objective weights (length 1 or 2).
- labels
Optional class labels, one per sample (integer, numeric, factor, character or logical). Required when
representation = "binary".- clusters
Optional vector of gene cluster assignments.
- network
Optional symmetric gene network adjacency matrix.
- seed
Optional integer random seed for reproducibility.
- eta_c
SBX distribution index (default: 20).
- representation
Either
"real"or"binary".
Value
A list with population, fitness, history, best,
best_fitness, pareto_population and pareto_fitness.
