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§
- Adjust
Rate - Degree to adjust probabilities towards best point during steps.
- Adjust
Rate From StrError - Error returned when failing to convert from a string or into ‘AdjustRate’.
- Config
- PBIL configuration parameters.
- Invalid
NumSamples Error - Error returned when ‘NumSamples’ is given a value below lower bound.
- Mismatched
Length Error - Error returned when problem length does not match state length.
- Mutation
Adjust Rate - Degree to adjust probability towards random value when mutating.
- Mutation
Adjust Rate From StrError - Error returned when failing to convert from a string or into ‘MutationAdjustRate’.
- Mutation
Chance - Probability for each probability to mutate, independently.
- Mutation
Chance From StrError - Error returned when failing to convert from a string or into ‘MutationChance’.
- NumSamples
- Number of samples generated during steps.
- NumSamples
From StrError - Error returned when failing to convert from a string or into ‘NumSamples’.
- Pbil
- A running PBIL optimizer.
- Probability
- Probability for a sampled bit to be true.
- Probability
From StrError - Error returned when failing to convert from a string or into ‘Probability’.
- Probability
Threshold - PBIL can be considered done when all probabilities are above this threshold or below the inverse.
- State
- PBIL state.
- Until
Probabilities Converged - PBIL runner to check for converged probabilities.
- Until
Probabilities Converged Config - Config for PBIL runner to check for converged probabilities.
Enums§
- Invalid
Adjust Rate Error - Error returned when ‘AdjustRate’ is given an invalid value.
- Invalid
Mutation Adjust Rate Error - Error returned when ‘MutationAdjustRate’ is given an invalid value.
- Invalid
Mutation Chance Error - Error returned when ‘MutationChance’ is given an invalid value.
- Invalid
Probability Error - Error returned when ‘Probability’ is given an invalid value.
- Invalid
Probability Threshold Error - Error returned when ‘ConvergedThreshold’ is given an invalid value.
- State
Kind - PBIL state kind.
Traits§
- Optimizer
- Running optimizer methods independent of configuration and state.
- Optimizer
Ext - An extension trait adding methods to
StreamingIteratorfor optimization. - Probabilities
- A type containing an array of probabilities.
- Streaming
Iterator - An interface for dealing with streaming iterators.
- Streaming
Iterator Ext - An extension trait adding methods to
StreamingIterator.