pub struct VariationalDeepGaussianProcess { /* private fields */ }Expand description
Variational Deep Gaussian Process
Implementations§
Source§impl VariationalDeepGaussianProcess
impl VariationalDeepGaussianProcess
Sourcepub fn builder() -> VariationalDeepGPBuilder
pub fn builder() -> VariationalDeepGPBuilder
Create a new builder for variational deep GP
Sourcepub fn new(config: VariationalDeepGPConfig) -> Self
pub fn new(config: VariationalDeepGPConfig) -> Self
Create a new variational deep GP with default configuration
Sourcepub fn fit(&mut self, X: &Array2<f64>, y: &Array2<f64>) -> Result<()>
pub fn fit(&mut self, X: &Array2<f64>, y: &Array2<f64>) -> Result<()>
Fit the variational deep GP to training data
Sourcepub fn predict(&self, X: &Array2<f64>) -> Result<(Array2<f64>, Array2<f64>)>
pub fn predict(&self, X: &Array2<f64>) -> Result<(Array2<f64>, Array2<f64>)>
Make predictions with uncertainty quantification
Sourcepub fn compute_elbo(
&self,
X: &Array2<f64>,
y: &Array2<f64>,
state: &VariationalDeepGPState,
) -> Result<f64>
pub fn compute_elbo( &self, X: &Array2<f64>, y: &Array2<f64>, state: &VariationalDeepGPState, ) -> Result<f64>
Compute the Evidence Lower BOund (ELBO)
Sourcepub fn elbo_history(&self) -> Option<&[f64]>
pub fn elbo_history(&self) -> Option<&[f64]>
Get the ELBO history during training
Sourcepub fn has_converged(&self) -> Option<bool>
pub fn has_converged(&self) -> Option<bool>
Check if training has converged
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VariationalDeepGaussianProcess
impl !RefUnwindSafe for VariationalDeepGaussianProcess
impl Send for VariationalDeepGaussianProcess
impl Sync for VariationalDeepGaussianProcess
impl Unpin for VariationalDeepGaussianProcess
impl !UnwindSafe for VariationalDeepGaussianProcess
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> 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