pub trait DomainModel: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn domain(&self) -> Domain;
fn predict(&self, input: &ArrayD<f64>) -> Result<ArrayD<f64>>;
fn train(&mut self, X: &ArrayD<f64>, y: &ArrayD<f64>) -> Result<()>;
fn config(&self) -> &TemplateConfig;
fn training_suggestions(&self) -> Vec<String>;
fn preprocessing_requirements(&self) -> Vec<String>;
}Expand description
Trait for domain-specific models
Required Methods§
Sourcefn config(&self) -> &TemplateConfig
fn config(&self) -> &TemplateConfig
Get model configuration
Sourcefn training_suggestions(&self) -> Vec<String>
fn training_suggestions(&self) -> Vec<String>
Get training suggestions
Sourcefn preprocessing_requirements(&self) -> Vec<String>
fn preprocessing_requirements(&self) -> Vec<String>
Get preprocessing requirements