PredictiveModel

Trait PredictiveModel 

Source
pub trait PredictiveModel {
    // Required methods
    fn predict(
        &self,
        features: &HashMap<String, f64>,
    ) -> DeviceResult<PredictionResult>;
    fn train(
        &mut self,
        training_data: &TrainingData,
    ) -> DeviceResult<TrainingResult>;
    fn get_feature_importance(&self) -> DeviceResult<HashMap<String, f64>>;
    fn cross_validate(
        &self,
        data: &TrainingData,
        folds: usize,
    ) -> DeviceResult<CrossValidationResult>;
}
Expand description

Predictive model trait

Required Methods§

Implementors§