advancedresearch-error_predictive_learning 0.1.0

Black-box learning algorithm using error prediction levels
Documentation
use error_predictive_learning::*;

pub fn lin(ws: &[f64]) -> f64 {
    utils::cmp(20, 0.0, 6.283185307179586,
        |x| x.sin(),
        |x| (x + ws[0]).cos())
}

fn main() {
    let settings = TrainingSettings {
        accuracy_error: 0.0,
        step: 0.000000000000000000000001,
        max_iterations: 1000000000000,
        error_predictions: 3,
        reset_interval: 40200 / 10,
        elasticity: 1.55,
        debug: true,
    };
    let weights = [-1.5707963183243376];
    println!("{:?}", train(settings, &weights, lin));
}