Predict

pub trait Predict<X, Output> {
    // Required method
    fn predict(&self, x: &X) -> Result<Output, SklearsError>;

    // Provided method
    fn predict_with_uncertainty(
        &self,
        x: &X,
    ) -> Result<(Output, UncertaintyMeasure), SklearsError> { ... }
}
Expand description

Enhanced trait for models that can make predictions

Required Methods§

Source

fn predict(&self, x: &X) -> Result<Output, SklearsError>

Make predictions on the provided data

Provided Methods§

Source

fn predict_with_uncertainty( &self, x: &X, ) -> Result<(Output, UncertaintyMeasure), SklearsError>

Make predictions with confidence intervals

Trait Implementations§

Source§

impl<X, Output> StableApi for dyn Predict<X, Output>

Source§

const STABLE_SINCE: &'static str = "0.1.0"

API version this type was stabilized in
Source§

const HAS_EXPERIMENTAL_FEATURES: bool = false

Whether this API has any experimental features

Implementors§