pub struct AutomaticNoiseFunctionSelector { /* private fields */ }Expand description
Automatic noise function selector that evaluates multiple candidates
Implementations§
Source§impl AutomaticNoiseFunctionSelector
impl AutomaticNoiseFunctionSelector
Sourcepub fn criterion(self, criterion: InformationCriterion) -> Self
pub fn criterion(self, criterion: InformationCriterion) -> Self
Set the information criterion for model selection
Sourcepub fn max_iter(self, max_iter: usize) -> Self
pub fn max_iter(self, max_iter: usize) -> Self
Set maximum iterations for noise function training
Sourcepub fn learning_rate(self, learning_rate: f64) -> Self
pub fn learning_rate(self, learning_rate: f64) -> Self
Set learning rate for noise function training
Sourcepub fn cross_validation_folds(self, folds: usize) -> Self
pub fn cross_validation_folds(self, folds: usize) -> Self
Enable cross-validation for model selection
Sourcepub fn regularization_strength(self, strength: f64) -> Self
pub fn regularization_strength(self, strength: f64) -> Self
Set regularization strength
Sourcepub fn add_candidate_constant(self) -> Self
pub fn add_candidate_constant(self) -> Self
Add a constant noise function candidate
Sourcepub fn add_candidate_linear(self) -> Self
pub fn add_candidate_linear(self) -> Self
Add a linear noise function candidate
Sourcepub fn add_candidate_polynomial(self, degree: usize) -> Self
pub fn add_candidate_polynomial(self, degree: usize) -> Self
Add a polynomial noise function candidate
Sourcepub fn add_candidate_gaussian_process(
self,
kernel: Box<dyn Kernel>,
n_inducing: usize,
) -> Self
pub fn add_candidate_gaussian_process( self, kernel: Box<dyn Kernel>, n_inducing: usize, ) -> Self
Add a Gaussian process noise function candidate
Sourcepub fn add_candidate_neural_network(
self,
input_dim: usize,
hidden_sizes: Vec<usize>,
) -> Self
pub fn add_candidate_neural_network( self, input_dim: usize, hidden_sizes: Vec<usize>, ) -> Self
Add a neural network noise function candidate
Sourcepub fn select_best(
&self,
x: &Array2<f64>,
y: &Array1<f64>,
) -> SklResult<LearnableNoiseFunction>
pub fn select_best( &self, x: &Array2<f64>, y: &Array1<f64>, ) -> SklResult<LearnableNoiseFunction>
Select the best noise function based on the specified criterion
Sourcepub fn evaluate_all(
&self,
x: &Array2<f64>,
y: &Array1<f64>,
) -> SklResult<Vec<NoiseFunctionEvaluation>>
pub fn evaluate_all( &self, x: &Array2<f64>, y: &Array1<f64>, ) -> SklResult<Vec<NoiseFunctionEvaluation>>
Get all evaluations for analysis
Trait Implementations§
Source§impl Clone for AutomaticNoiseFunctionSelector
impl Clone for AutomaticNoiseFunctionSelector
Source§fn clone(&self) -> AutomaticNoiseFunctionSelector
fn clone(&self) -> AutomaticNoiseFunctionSelector
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 moreAuto Trait Implementations§
impl Freeze for AutomaticNoiseFunctionSelector
impl !RefUnwindSafe for AutomaticNoiseFunctionSelector
impl Send for AutomaticNoiseFunctionSelector
impl Sync for AutomaticNoiseFunctionSelector
impl Unpin for AutomaticNoiseFunctionSelector
impl !UnwindSafe for AutomaticNoiseFunctionSelector
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