pub struct StochasticVariationalInference;Expand description
Stochastic Variational Inference for large-scale datasets
Implementations§
Source§impl StochasticVariationalInference
impl StochasticVariationalInference
Sourcepub fn fit<K: SparseKernel>(
x: &Array2<f64>,
y: &Array1<f64>,
inducing_points: &Array2<f64>,
kernel: &K,
noise_variance: f64,
batch_size: usize,
max_iter: usize,
learning_rate: f64,
) -> Result<(Array1<f64>, Array2<f64>, VariationalParams)>
pub fn fit<K: SparseKernel>( x: &Array2<f64>, y: &Array1<f64>, inducing_points: &Array2<f64>, kernel: &K, noise_variance: f64, batch_size: usize, max_iter: usize, learning_rate: f64, ) -> Result<(Array1<f64>, Array2<f64>, VariationalParams)>
Fit sparse GP using stochastic variational inference with mini-batches
Auto Trait Implementations§
impl Freeze for StochasticVariationalInference
impl RefUnwindSafe for StochasticVariationalInference
impl Send for StochasticVariationalInference
impl Sync for StochasticVariationalInference
impl Unpin for StochasticVariationalInference
impl UnwindSafe for StochasticVariationalInference
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