QueryStrategy

Trait QueryStrategy 

Source
pub trait QueryStrategy {
    // Required method
    fn score(&self, predictions: &[Vector<f32>]) -> Vec<f32>;

    // Provided method
    fn select(&self, predictions: &[Vector<f32>], k: usize) -> Vec<usize> { ... }
}
Expand description

Active learning query strategy trait.

Required Methods§

Source

fn score(&self, predictions: &[Vector<f32>]) -> Vec<f32>

Score samples for querying (higher = more informative).

Provided Methods§

Source

fn select(&self, predictions: &[Vector<f32>], k: usize) -> Vec<usize>

Select top-k samples to query.

Implementors§