PerformancePredictionModel

Trait PerformancePredictionModel 

Source
pub trait PerformancePredictionModel:
    Send
    + Sync
    + Debug {
    // Required methods
    fn predict_performance(
        &self,
        problem_characteristics: &ProblemCharacteristics,
    ) -> Result<HashMap<String, f64>, AnalysisError>;
    fn train(
        &mut self,
        training_data: &[TrainingExample],
    ) -> Result<(), AnalysisError>;
    fn get_accuracy(&self) -> f64;
    fn get_model_name(&self) -> &str;
}
Expand description

Performance prediction model trait

Required Methods§

Source

fn predict_performance( &self, problem_characteristics: &ProblemCharacteristics, ) -> Result<HashMap<String, f64>, AnalysisError>

Predict performance metrics

Source

fn train( &mut self, training_data: &[TrainingExample], ) -> Result<(), AnalysisError>

Train model with new data

Source

fn get_accuracy(&self) -> f64

Get model accuracy

Source

fn get_model_name(&self) -> &str

Get model name

Implementors§