Skip to main content

FeatureExtractor

Trait FeatureExtractor 

Source
pub trait FeatureExtractor:
    Debug
    + Send
    + Sync {
    // Required methods
    fn extract_features(
        &self,
        snapshot: &MemoryUsageSnapshot,
    ) -> Result<Vec<f64>>;
    fn feature_names(&self) -> Vec<String>;
    fn name(&self) -> &str;
}
Expand description

Feature extractor trait

Required Methods§

Source

fn extract_features(&self, snapshot: &MemoryUsageSnapshot) -> Result<Vec<f64>>

Extract features from memory snapshot

Source

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

Get feature names

Source

fn name(&self) -> &str

Get extractor name

Implementors§