[][src]Trait yamakan::MultiFidelityOptimizer

pub trait MultiFidelityOptimizer {
    type Param;
    type Value;
    fn ask<R: Rng, G: IdGen>(
        &mut self,
        rng: R,
        idg: G
    ) -> Result<MfObs<Self::Param>>;
fn tell(&mut self, obs: MfObs<Self::Param, Self::Value>) -> Result<()>; }

This trait provides ask-and-tell interface for multi-fidelity black-box optimization.

Associated Types

type Param

The parameter to be optimized.

type Value

The value obtained as a result of a parameter evaluation.

Loading content...

Required methods

fn ask<R: Rng, G: IdGen>(
    &mut self,
    rng: R,
    idg: G
) -> Result<MfObs<Self::Param>>

Asks the next parameter to be evaluated.

The evaluation result should be told to this optimizer.

fn tell(&mut self, obs: MfObs<Self::Param, Self::Value>) -> Result<()>

Tells the result of an observation to this optimizer.

If there is an existing observation that has the same identifier, the state of the observation should be overwritten by the new one.

Errors

Some implementations may return an ErrorKind::UnknownObservation error if this optimizer does not known (or has not generated) the specified observation.

Loading content...

Implementors

impl<V, O> MultiFidelityOptimizer for AshaOptimizer<V, O> where
    V: Ord + Clone,
    O: Optimizer<Value = Ranked<V>>,
    O::Param: Clone
[src]

type Param = O::Param

type Value = V

Loading content...