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),
}Fields
n_crosses: usize
The number of hypotheses crossover should generate.
max_sample_depth: usize
The maximum number of non-progressing recursive steps sampling can make without failing.
p_add: f64
The probability of adding (vs. deleting) a rule during mutation.
p_keep: f64
The probability of keeping a rule during crossover.
templates: Vec<RuleContext>
Rule templates to use when sampling rules.
atom_weights: (f64, f64, f64)
The weight to assign variables, constants, and non-constant operators, respectively.
Trait Implementations
impl Debug for GeneticParams[src]
impl Debug for GeneticParamsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for GeneticParams[src]
impl Clone for GeneticParamsfn clone(&self) -> GeneticParams[src]
fn clone(&self) -> GeneticParamsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl Send for GeneticParams
impl Send for GeneticParamsimpl Sync for GeneticParams
impl Sync for GeneticParams