algen 0.2.0

A parallelized genetic algorithm runner
Documentation
1
2
3
4
5
6
7
8
use super::test_parameters::TestParameters;

/// The Analyzer Trait is responsible for taking a set of test data,
/// the output of an algorithm, and then returning the score of how
/// well the algorithm did.
pub trait Analyzer<InputData, OutputData, FeatureFlags> {
    fn evaluate(&self, attempt: &OutputData, params: &TestParameters<FeatureFlags>) -> f32;
}