pub struct FittedSKI<K> {
pub grid_points: Array2<f64>,
pub weights: Array2<f64>,
pub kernel: K,
pub alpha: Array1<f64>,
}Expand description
Fitted structured kernel interpolation
Fields§
§grid_points: Array2<f64>Grid points
weights: Array2<f64>Interpolation weights
kernel: KKernel function
alpha: Array1<f64>Precomputed alpha
Implementations§
Trait Implementations§
Source§impl<K: SparseKernel> Predict<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for FittedSKI<K>
Prediction implementation for fitted SKI
impl<K: SparseKernel> Predict<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for FittedSKI<K>
Prediction implementation for fitted SKI
Source§fn predict(&self, x: &Array2<f64>) -> Result<Array1<f64>>
fn predict(&self, x: &Array2<f64>) -> Result<Array1<f64>>
Make predictions on the provided data
Source§fn predict_with_uncertainty(
&self,
x: &X,
) -> Result<(Output, UncertaintyMeasure), SklearsError>
fn predict_with_uncertainty( &self, x: &X, ) -> Result<(Output, UncertaintyMeasure), SklearsError>
Make predictions with confidence intervals
Auto Trait Implementations§
impl<K> Freeze for FittedSKI<K>where
K: Freeze,
impl<K> RefUnwindSafe for FittedSKI<K>where
K: RefUnwindSafe,
impl<K> Send for FittedSKI<K>where
K: Send,
impl<K> Sync for FittedSKI<K>where
K: Sync,
impl<K> Unpin for FittedSKI<K>where
K: Unpin,
impl<K> UnwindSafe for FittedSKI<K>where
K: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more