Trait VariationalRegression

Source
pub trait VariationalRegression<D: ScalarDistribution> {
    // Required methods
    fn predict(&self, features: &[f64]) -> Result<D, RegressionError>;
    fn weights(&self) -> &[f64];
    fn bias(&self) -> Option<f64>;
}
Expand description

Represents a trained variational regression model with the specified predictive distribution type

Required Methods§

Source

fn predict(&self, features: &[f64]) -> Result<D, RegressionError>

Computes the predictive distribution for the provided features

§Arguments

features - The input features

Source

fn weights(&self) -> &[f64]

Provides the estimated model weights

Source

fn bias(&self) -> Option<f64>

Provides the estimated model bias, if specified for training

Implementors§