pub struct MultiViewGraphLearning {
pub k_neighbors: usize,
pub view_weights: Vec<f64>,
pub combination_method: String,
pub regularization: f64,
pub max_iter: usize,
pub tolerance: f64,
pub random_state: Option<u64>,
}Expand description
Multi-view graph learning that constructs graphs from multiple data views
Fields§
§k_neighbors: usizeNumber of neighbors for k-NN graph construction
view_weights: Vec<f64>Weights for combining different views
combination_method: StringMethod for combining views: “weighted”, “union”, “intersection”, “adaptive”
regularization: f64Regularization parameter for graph structure learning
max_iter: usizeMaximum iterations for optimization
tolerance: f64Convergence tolerance
random_state: Option<u64>Random state for reproducibility
Implementations§
Source§impl MultiViewGraphLearning
impl MultiViewGraphLearning
Sourcepub fn k_neighbors(self, k: usize) -> Self
pub fn k_neighbors(self, k: usize) -> Self
Set the number of neighbors for k-NN graph construction
Sourcepub fn view_weights(self, weights: Vec<f64>) -> Self
pub fn view_weights(self, weights: Vec<f64>) -> Self
Set the weights for combining different views
Sourcepub fn combination_method(self, method: String) -> Self
pub fn combination_method(self, method: String) -> Self
Set the method for combining views
Sourcepub fn regularization(self, reg: f64) -> Self
pub fn regularization(self, reg: f64) -> Self
Set the regularization parameter
Sourcepub fn random_state(self, seed: u64) -> Self
pub fn random_state(self, seed: u64) -> Self
Set the random state for reproducibility
Sourcepub fn fit(
&self,
views: &[ArrayView2<'_, f64>],
) -> Result<Array2<f64>, SklearsError>
pub fn fit( &self, views: &[ArrayView2<'_, f64>], ) -> Result<Array2<f64>, SklearsError>
Learn a unified graph from multiple views of data
Trait Implementations§
Source§impl Clone for MultiViewGraphLearning
impl Clone for MultiViewGraphLearning
Source§fn clone(&self) -> MultiViewGraphLearning
fn clone(&self) -> MultiViewGraphLearning
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 MultiViewGraphLearning
impl RefUnwindSafe for MultiViewGraphLearning
impl Send for MultiViewGraphLearning
impl Sync for MultiViewGraphLearning
impl Unpin for MultiViewGraphLearning
impl UnwindSafe for MultiViewGraphLearning
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