pub struct GraphRegularizedCCA { /* private fields */ }Expand description
Graph-regularized CCA implementation
Implementations§
Source§impl GraphRegularizedCCA
impl GraphRegularizedCCA
Sourcepub fn new(config: GraphRegularizationConfig) -> Self
pub fn new(config: GraphRegularizationConfig) -> Self
Create new graph-regularized CCA
Sourcepub fn with_regularization(reg_type: RegularizationType, lambda: f64) -> Self
pub fn with_regularization(reg_type: RegularizationType, lambda: f64) -> Self
Create with default configuration and specified regularization
Sourcepub fn fit(
&self,
x: &Array2<f64>,
y: &Array2<f64>,
) -> GraphResult<GraphRegularizationResults>
pub fn fit( &self, x: &Array2<f64>, y: &Array2<f64>, ) -> GraphResult<GraphRegularizationResults>
Fit graph-regularized CCA model
Auto Trait Implementations§
impl Freeze for GraphRegularizedCCA
impl RefUnwindSafe for GraphRegularizedCCA
impl Send for GraphRegularizedCCA
impl Sync for GraphRegularizedCCA
impl Unpin for GraphRegularizedCCA
impl UnwindSafe for GraphRegularizedCCA
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