Skip to main content

FeedbackSource

Trait FeedbackSource 

Source
pub trait FeedbackSource {
    // Required method
    fn step(&mut self, evaluated: &[(Coord, f64)]) -> Option<Vec<Coord>>;
}
Expand description

Most-capable decorator — the optimizer primitive. Given the just-evaluated (coord, objective) pairs, yield the next batch of coordinates to evaluate, or None when the search is done. The first call receives an empty slice (it produces the initial batch). Batch methods (CMA-ES generation, Hyperband bracket) return several coordinates at once and buffer the matching values across calls.

Required Methods§

Source

fn step(&mut self, evaluated: &[(Coord, f64)]) -> Option<Vec<Coord>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§