pub struct GaussianProcessRegressor {
pub kernel: GPKernel,
pub alpha: f32,
pub normalize_y: bool,
pub n_restarts_optimizer: usize,
/* private fields */
}Expand description
Gaussian Process Regressor
Fields§
§kernel: GPKernel§alpha: f32§normalize_y: bool§n_restarts_optimizer: usizeImplementations§
Source§impl GaussianProcessRegressor
impl GaussianProcessRegressor
pub fn new(kernel: GPKernel) -> Self
pub fn alpha(self, alpha: f32) -> Self
pub fn normalize_y(self, normalize: bool) -> Self
pub fn fit(&mut self, x: &Tensor, y: &Tensor)
pub fn predict(&self, x: &Tensor) -> Tensor
pub fn predict_with_std(&self, x: &Tensor) -> (Tensor, Tensor)
pub fn score(&self, x: &Tensor, y: &Tensor) -> f32
Auto Trait Implementations§
impl Freeze for GaussianProcessRegressor
impl RefUnwindSafe for GaussianProcessRegressor
impl Send for GaussianProcessRegressor
impl Sync for GaussianProcessRegressor
impl Unpin for GaussianProcessRegressor
impl UnwindSafe for GaussianProcessRegressor
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