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§
Sourcefn predict_performance(
&self,
problem_characteristics: &ProblemCharacteristics,
) -> Result<HashMap<String, f64>, AnalysisError>
fn predict_performance( &self, problem_characteristics: &ProblemCharacteristics, ) -> Result<HashMap<String, f64>, AnalysisError>
Predict performance metrics
Sourcefn train(
&mut self,
training_data: &[TrainingExample],
) -> Result<(), AnalysisError>
fn train( &mut self, training_data: &[TrainingExample], ) -> Result<(), AnalysisError>
Train model with new data
Sourcefn get_accuracy(&self) -> f64
fn get_accuracy(&self) -> f64
Get model accuracy
Sourcefn get_model_name(&self) -> &str
fn get_model_name(&self) -> &str
Get model name