Skip to main content

FeatureExtractor

Trait FeatureExtractor 

Source
pub trait FeatureExtractor: Send + Sync {
    // Required methods
    fn extract_features(
        &self,
        entity: &EntityRecord,
    ) -> Result<HashMap<String, f32>>;
    fn feature_names(&self) -> Vec<String>;
}
Expand description

Feature extractor trait

Required Methods§

Source

fn extract_features( &self, entity: &EntityRecord, ) -> Result<HashMap<String, f32>>

Extract features from entity

Source

fn feature_names(&self) -> Vec<String>

Get feature names

Implementors§