LabelingFunction

Trait LabelingFunction 

Source
pub trait LabelingFunction: Send + Sync {
    // Required methods
    fn apply(&self, features: &FileFeatures) -> LabelOutput;
    fn name(&self) -> &str;
}
Expand description

Trait for labeling functions that emit noisy labels

Required Methods§

Source

fn apply(&self, features: &FileFeatures) -> LabelOutput

Apply the labeling function to features

Source

fn name(&self) -> &str

Get the name of this labeling function

Implementors§