Struct programinduction::trs::GeneticParams[][src]

pub struct GeneticParams {
    pub n_crosses: usize,
    pub max_sample_depth: usize,
    pub p_add: f64,
    pub p_keep: f64,
    pub templates: Vec<RuleContext>,
    pub atom_weights: (f64, f64, f64),
}

Parameters for Lexicon genetic programming (GP).

Fields

The number of hypotheses crossover should generate.

The maximum number of non-progressing recursive steps sampling can make without failing.

The probability of adding (vs. deleting) a rule during mutation.

The probability of keeping a rule during crossover.

Rule templates to use when sampling rules.

The weight to assign variables, constants, and non-constant operators, respectively.

Trait Implementations

impl Debug for GeneticParams
[src]

Formats the value using the given formatter. Read more

impl Clone for GeneticParams
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations