Mutate an individual

mutate(
  ind,
  verbose = FALSE,
  force_add = FALSE,
  importances = numeric(0),
  temperature = 1,
  task = "classification",
  tested_gene_outputs = NULL
)

Arguments

ind

An evo_individual.

verbose

Logical. Whether to print mutation details.

force_add

Logical. If TRUE, forces adding a new gene.

importances

A numeric vector of feature importances.

temperature

A numeric temperature value controlling selection weights.

task

The task type ("classification", "regression", or "multiclass")

tested_gene_outputs

Character vector of gene output names that have been evaluated in a previous generation and are safe for chaining. When NULL (default), all existing gene outputs are available. Pass character(0) to block all chaining (e.g. during initialization).