pub struct DeepGaussianProcess {
pub layer_dims: Vec<usize>,
pub num_inducing: usize,
pub epochs: usize,
pub learning_rate: f64,
pub noise_variance: f64,
pub random_state: Option<u64>,
/* private fields */
}Expand description
Deep Gaussian Process for semi-supervised learning
This implements a multi-layer composition of Gaussian processes that can learn complex non-linear mappings while providing principled uncertainty quantification for semi-supervised learning scenarios.
Fields§
§layer_dims: Vec<usize>layer_dims
num_inducing: usizenum_inducing
epochs: usizeepochs
learning_rate: f64learning_rate
noise_variance: f64noise_variance
random_state: Option<u64>random_state
Implementations§
Source§impl DeepGaussianProcess
impl DeepGaussianProcess
pub fn new() -> Self
pub fn layer_dims(self, layer_dims: Vec<usize>) -> Result<Self>
pub fn num_inducing(self, num_inducing: usize) -> Result<Self>
pub fn epochs(self, epochs: usize) -> Result<Self>
pub fn learning_rate(self, learning_rate: f64) -> Result<Self>
pub fn noise_variance(self, noise_variance: f64) -> Result<Self>
pub fn random_state(self, random_state: u64) -> Self
pub fn fit( &mut self, X: &ArrayView2<'_, f64>, y: &ArrayView1<'_, i32>, ) -> Result<()>
pub fn predict_proba(&self, X: &ArrayView2<'_, f64>) -> Result<Array2<f64>>
pub fn predict(&self, X: &ArrayView2<'_, f64>) -> Result<Array1<i32>>
pub fn predict_with_uncertainty( &self, X: &ArrayView2<'_, f64>, ) -> Result<(Array1<i32>, Array2<f64>)>
Trait Implementations§
Source§impl Clone for DeepGaussianProcess
impl Clone for DeepGaussianProcess
Source§fn clone(&self) -> DeepGaussianProcess
fn clone(&self) -> DeepGaussianProcess
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 Debug for DeepGaussianProcess
impl Debug for DeepGaussianProcess
Source§impl Default for DeepGaussianProcess
impl Default for DeepGaussianProcess
Source§impl Fit<ArrayBase<ViewRepr<&f64>, Dim<[usize; 2]>>, ArrayBase<ViewRepr<&i32>, Dim<[usize; 1]>>, FittedDeepGaussianProcess> for DeepGaussianProcess
impl Fit<ArrayBase<ViewRepr<&f64>, Dim<[usize; 2]>>, ArrayBase<ViewRepr<&i32>, Dim<[usize; 1]>>, FittedDeepGaussianProcess> for DeepGaussianProcess
Source§type Fitted = FittedDeepGaussianProcess
type Fitted = FittedDeepGaussianProcess
The fitted model type
Source§fn fit(
self,
X: &ArrayView2<'_, f64>,
y: &ArrayView1<'_, i32>,
) -> Result<FittedDeepGaussianProcess>
fn fit( self, X: &ArrayView2<'_, f64>, y: &ArrayView1<'_, i32>, ) -> Result<FittedDeepGaussianProcess>
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 Freeze for DeepGaussianProcess
impl RefUnwindSafe for DeepGaussianProcess
impl Send for DeepGaussianProcess
impl Sync for DeepGaussianProcess
impl Unpin for DeepGaussianProcess
impl UnwindSafe for DeepGaussianProcess
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