pub struct SparseGaussianProcess<K> {
pub num_inducing: usize,
pub kernel: K,
pub approximation: SparseApproximation,
pub inducing_strategy: InducingPointStrategy,
pub noise_variance: f64,
pub max_iter: usize,
pub tol: f64,
}Expand description
Core sparse Gaussian Process structure with configuration parameters
Fields§
§num_inducing: usizeNumber of inducing points
kernel: KKernel function
approximation: SparseApproximationSparse approximation method
inducing_strategy: InducingPointStrategyStrategy for selecting inducing points
noise_variance: f64Observation noise variance
max_iter: usizeMaximum optimization iterations
tol: f64Convergence tolerance
Implementations§
Source§impl<K> SparseGaussianProcess<K>
Builder-style methods for sparse GP configuration
impl<K> SparseGaussianProcess<K>
Builder-style methods for sparse GP configuration
Sourcepub fn approximation(self, approximation: SparseApproximation) -> Self
pub fn approximation(self, approximation: SparseApproximation) -> Self
Set the sparse approximation method
Sourcepub fn inducing_strategy(self, strategy: InducingPointStrategy) -> Self
pub fn inducing_strategy(self, strategy: InducingPointStrategy) -> Self
Set the inducing point selection strategy
Sourcepub fn noise_variance(self, noise_variance: f64) -> Self
pub fn noise_variance(self, noise_variance: f64) -> Self
Set the observation noise variance
Sourcepub fn optimization_params(self, max_iter: usize, tol: f64) -> Self
pub fn optimization_params(self, max_iter: usize, tol: f64) -> Self
Set optimization parameters
Source§impl<K: SparseKernel> SparseGaussianProcess<K>
Main sparse Gaussian Process implementation
impl<K: SparseKernel> SparseGaussianProcess<K>
Main sparse Gaussian Process implementation
Trait Implementations§
Source§impl<K: Clone> Clone for SparseGaussianProcess<K>
impl<K: Clone> Clone for SparseGaussianProcess<K>
Source§fn clone(&self) -> SparseGaussianProcess<K>
fn clone(&self) -> SparseGaussianProcess<K>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<K: Debug> Debug for SparseGaussianProcess<K>
impl<K: Debug> Debug for SparseGaussianProcess<K>
Source§impl<K: SparseKernel> Fit<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for SparseGaussianProcess<K>
Fit implementation for sparse GP
impl<K: SparseKernel> Fit<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>>> for SparseGaussianProcess<K>
Fit implementation for sparse GP
Source§type Fitted = FittedSparseGP<K>
type Fitted = FittedSparseGP<K>
The fitted model type
Source§fn fit(self, x: &Array2<f64>, y: &Array1<f64>) -> Result<Self::Fitted>
fn fit(self, x: &Array2<f64>, y: &Array1<f64>) -> Result<Self::Fitted>
Fit the model to the provided data with validation
Source§fn fit_with_validation(
self,
x: &X,
y: &Y,
_x_val: Option<&X>,
_y_val: Option<&Y>,
) -> Result<(Self::Fitted, FitMetrics), SklearsError>where
Self: Sized,
fn fit_with_validation(
self,
x: &X,
y: &Y,
_x_val: Option<&X>,
_y_val: Option<&Y>,
) -> Result<(Self::Fitted, FitMetrics), SklearsError>where
Self: Sized,
Fit with custom validation and early stopping
Auto Trait Implementations§
impl<K> Freeze for SparseGaussianProcess<K>where
K: Freeze,
impl<K> RefUnwindSafe for SparseGaussianProcess<K>where
K: RefUnwindSafe,
impl<K> Send for SparseGaussianProcess<K>where
K: Send,
impl<K> Sync for SparseGaussianProcess<K>where
K: Sync,
impl<K> Unpin for SparseGaussianProcess<K>where
K: Unpin,
impl<K> UnwindSafe for SparseGaussianProcess<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