pub struct ExperimentParams {Show 18 fields
pub env: EnvironmentType,
pub population_size: usize,
pub n_generations: usize,
pub mutation_percent: f64,
pub crossover_percent: f64,
pub gap: f64,
pub n_trials: usize,
pub seed: Option<u64>,
pub n_threads: Option<usize>,
pub default_fitness: Option<f64>,
pub max_instructions: usize,
pub n_extras: usize,
pub external_factor: f64,
pub alpha: f64,
pub gamma: f64,
pub epsilon: f64,
pub alpha_decay: f64,
pub epsilon_decay: f64,
}Expand description
Experiment parameters for running LGP experiments
Fields§
§env: EnvironmentTypeEnvironment to run
population_size: usizeNumber of individuals per generation
n_generations: usizeNumber of generations to evolve
mutation_percent: f64Proportion of offspring created by mutation
crossover_percent: f64Proportion of offspring created by crossover
gap: f64Survival rate (fraction of population that survives)
n_trials: usizeNumber of trial episodes for fitness evaluation
seed: Option<u64>Random seed for reproducibility
n_threads: Option<usize>Number of threads for parallel evaluation (defaults to all available cores)
default_fitness: Option<f64>Fitness assigned to invalid programs (overridden per environment if not set)
max_instructions: usizeMaximum instructions per program
n_extras: usizeNumber of extra working registers
external_factor: f64Scaling factor for external inputs
alpha: f64Learning rate (Q-Learning only)
gamma: f64Discount factor (Q-Learning only)
epsilon: f64Exploration rate (Q-Learning only)
alpha_decay: f64Learning rate decay per trial (Q-Learning only)
epsilon_decay: f64Exploration rate decay per trial (Q-Learning only)
Implementations§
Trait Implementations§
Source§impl Args for ExperimentParams
impl Args for ExperimentParams
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for ExperimentParams
impl CommandFactory for ExperimentParams
Source§impl Debug for ExperimentParams
impl Debug for ExperimentParams
Source§impl<'de> Deserialize<'de> for ExperimentParams
impl<'de> Deserialize<'de> for ExperimentParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl FromArgMatches for ExperimentParams
impl FromArgMatches for ExperimentParams
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for ExperimentParams
impl Parser for ExperimentParams
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for ExperimentParams
impl RefUnwindSafe for ExperimentParams
impl Send for ExperimentParams
impl Sync for ExperimentParams
impl Unpin for ExperimentParams
impl UnsafeUnpin for ExperimentParams
impl UnwindSafe for ExperimentParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more