pub struct GradientKernelLearner { /* private fields */ }Expand description
Gradient-based kernel parameter learner
Implementations§
Source§impl GradientKernelLearner
impl GradientKernelLearner
Sourcepub fn with_config(self, config: GradientConfig) -> Self
pub fn with_config(self, config: GradientConfig) -> Self
Set configuration
Sourcepub fn with_optimizer(self, optimizer: GradientOptimizer) -> Self
pub fn with_optimizer(self, optimizer: GradientOptimizer) -> Self
Set optimizer
Sourcepub fn with_objective(self, objective: KernelObjective) -> Self
pub fn with_objective(self, objective: KernelObjective) -> Self
Set objective function
Sourcepub fn with_bounds(self, bounds: Array2<f64>) -> Self
pub fn with_bounds(self, bounds: Array2<f64>) -> Self
Set parameter bounds
Sourcepub fn initialize_parameters(&mut self, initial_params: Array1<f64>)
pub fn initialize_parameters(&mut self, initial_params: Array1<f64>)
Initialize parameters
Sourcepub fn optimize(
&mut self,
x: &Array2<f64>,
y: Option<&Array1<f64>>,
) -> Result<Array1<f64>>
pub fn optimize( &mut self, x: &Array2<f64>, y: Option<&Array1<f64>>, ) -> Result<Array1<f64>>
Optimize kernel parameters
Sourcepub fn get_parameters(&self) -> &Array1<f64>
pub fn get_parameters(&self) -> &Array1<f64>
Get current parameters
Auto Trait Implementations§
impl Freeze for GradientKernelLearner
impl RefUnwindSafe for GradientKernelLearner
impl Send for GradientKernelLearner
impl Sync for GradientKernelLearner
impl Unpin for GradientKernelLearner
impl UnwindSafe for GradientKernelLearner
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