Crate optimal_pbil
source ·Expand description
Population-based incremental learning (PBIL).
Examples
use optimal_pbil::*;
println!(
"{:?}",
UntilProbabilitiesConvergedConfig::default()
.start(Config::start_default_for(16, |point| point.iter().filter(|x| **x).count()))
.argmin()
);
Structs
- Degree to adjust probabilities towards best point during steps.
- Error returned when failing to convert from a string or into ‘AdjustRate’.
- PBIL configuration parameters.
- Error returned when ‘NumSamples’ is given a value below lower bound.
- Error returned when problem length does not match state length.
- Degree to adjust probability towards random value when mutating.
- Error returned when failing to convert from a string or into ‘MutationAdjustRate’.
- Probability for each probability to mutate, independently.
- Error returned when failing to convert from a string or into ‘MutationChance’.
- Number of samples generated during steps.
- Error returned when failing to convert from a string or into ‘NumSamples’.
- A running PBIL optimizer.
- Probability for a sampled bit to be true.
- Error returned when failing to convert from a string or into ‘Probability’.
- PBIL can be considered done when all probabilities are above this threshold or below the inverse.
- PBIL state.
- PBIL runner to check for converged probabilities.
- Config for PBIL runner to check for converged probabilities.
Enums
- Error returned when ‘AdjustRate’ is given an invalid value.
- Error returned when ‘MutationAdjustRate’ is given an invalid value.
- Error returned when ‘MutationChance’ is given an invalid value.
- Error returned when ‘Probability’ is given an invalid value.
- Error returned when ‘ConvergedThreshold’ is given an invalid value.
- PBIL state kind.
Traits
- Running optimizer methods independent of configuration and state.
- An extension trait adding methods to
StreamingIterator
for optimization. - A type containing an array of probabilities.
- An interface for dealing with streaming iterators.
- An extension trait adding methods to
StreamingIterator
.