[][src]Trait blackbox::BlackboxInput

pub trait BlackboxInput: Sized + Clone + Debug {
    fn evaluate(&self, log: Logger) -> f64;
fn random() -> Self;
fn n_variables() -> usize;
fn get_domains() -> Vec<Variable>;
fn to_numbers(&self) -> Vec<f64>; fn bayesian_search(
        init_samples: usize,
        max_iter: usize,
        log: Logger
    ) -> Self { ... }
fn grid_search(_max_iter: Option<usize>) -> Self { ... }
fn random_search(max_iter: usize, log: Logger) -> Self { ... } }

Required methods

fn evaluate(&self, log: Logger) -> f64

fn random() -> Self

Sample randomly from the domain

fn n_variables() -> usize

fn get_domains() -> Vec<Variable>

fn to_numbers(&self) -> Vec<f64>

Loading content...

Provided methods

Loading content...

Implementors

Loading content...