pub struct KernelStructureLearner {
pub max_depth: usize,
pub max_iterations: usize,
pub expansion_probability: f64,
pub simplification_probability: f64,
pub improvement_threshold: f64,
pub use_bic: bool,
pub random_state: Option<u64>,
pub search_strategy: SearchStrategy,
}Expand description
Grammar-based kernel structure learning
Fields§
§max_depth: usizeMaximum depth of kernel expressions
max_iterations: usizeMaximum number of iterations for structure search
expansion_probability: f64Probability of adding new components
simplification_probability: f64Probability of simplifying structures
improvement_threshold: f64Minimum improvement threshold for accepting new structures
use_bic: boolWhether to use Bayesian information criterion for model selection
random_state: Option<u64>Random state for reproducible results
search_strategy: SearchStrategySearch strategy
Implementations§
Source§impl KernelStructureLearner
impl KernelStructureLearner
Sourcepub fn max_iterations(self, iterations: usize) -> Self
pub fn max_iterations(self, iterations: usize) -> Self
Set maximum number of iterations
Sourcepub fn search_strategy(self, strategy: SearchStrategy) -> Self
pub fn search_strategy(self, strategy: SearchStrategy) -> Self
Set search strategy
Sourcepub fn random_state(self, seed: Option<u64>) -> Self
pub fn random_state(self, seed: Option<u64>) -> Self
Set random state for reproducible results
Sourcepub fn learn_structure(
&self,
X: ArrayView2<'_, f64>,
y: ArrayView1<'_, f64>,
) -> SklResult<StructureLearningResult>
pub fn learn_structure( &self, X: ArrayView2<'_, f64>, y: ArrayView1<'_, f64>, ) -> SklResult<StructureLearningResult>
Learn kernel structure from data
Trait Implementations§
Source§impl Clone for KernelStructureLearner
impl Clone for KernelStructureLearner
Source§fn clone(&self) -> KernelStructureLearner
fn clone(&self) -> KernelStructureLearner
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 KernelStructureLearner
impl Debug for KernelStructureLearner
Auto Trait Implementations§
impl Freeze for KernelStructureLearner
impl RefUnwindSafe for KernelStructureLearner
impl Send for KernelStructureLearner
impl Sync for KernelStructureLearner
impl Unpin for KernelStructureLearner
impl UnwindSafe for KernelStructureLearner
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