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§
Sourcefn extract_features(&self, snapshot: &MemoryUsageSnapshot) -> Result<Vec<f64>>
fn extract_features(&self, snapshot: &MemoryUsageSnapshot) -> Result<Vec<f64>>
Extract features from memory snapshot
Sourcefn feature_names(&self) -> Vec<String>
fn feature_names(&self) -> Vec<String>
Get feature names