pub struct MultiScaleSemiSupervised {
pub graph_builder: HierarchicalGraphConstruction,
pub alpha: f64,
pub max_iter: usize,
pub tolerance: f64,
pub combination_method: String,
pub random_state: Option<u64>,
}Expand description
Multi-scale semi-supervised learning using hierarchical graphs
Fields§
§graph_builder: HierarchicalGraphConstructionHierarchical graph construction parameters
alpha: f64Label propagation parameters
max_iter: usizeMaximum iterations for propagation
tolerance: f64Convergence tolerance
combination_method: StringScale combination method: “fine_to_coarse”, “coarse_to_fine”, “simultaneous”
random_state: Option<u64>Random state for reproducibility
Implementations§
Source§impl MultiScaleSemiSupervised
impl MultiScaleSemiSupervised
Sourcepub fn graph_builder(self, builder: HierarchicalGraphConstruction) -> Self
pub fn graph_builder(self, builder: HierarchicalGraphConstruction) -> Self
Set the graph builder
Sourcepub fn combination_method(self, method: String) -> Self
pub fn combination_method(self, method: String) -> Self
Set the combination method
Sourcepub fn random_state(self, seed: u64) -> Self
pub fn random_state(self, seed: u64) -> Self
Set the random state
Sourcepub fn fit(
&self,
X: &ArrayView2<'_, f64>,
y: &ArrayView1<'_, i32>,
) -> Result<Array1<i32>, SklearsError>
pub fn fit( &self, X: &ArrayView2<'_, f64>, y: &ArrayView1<'_, i32>, ) -> Result<Array1<i32>, SklearsError>
Fit multi-scale semi-supervised model
Trait Implementations§
Source§impl Clone for MultiScaleSemiSupervised
impl Clone for MultiScaleSemiSupervised
Source§fn clone(&self) -> MultiScaleSemiSupervised
fn clone(&self) -> MultiScaleSemiSupervised
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 MultiScaleSemiSupervised
impl RefUnwindSafe for MultiScaleSemiSupervised
impl Send for MultiScaleSemiSupervised
impl Sync for MultiScaleSemiSupervised
impl Unpin for MultiScaleSemiSupervised
impl UnwindSafe for MultiScaleSemiSupervised
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