pub struct GraphParams {
pub n_neighbors: usize,
pub metric: Metric,
pub normalized: bool,
pub minkowski_p: f64,
}Expand description
Configuration for k-nearest neighbor graph construction.
These parameters control how the high-dimensional manifold structure is captured via a fuzzy topological representation.
Fields§
§n_neighbors: usizeNumber of nearest neighbors to use for manifold approximation.
Larger values capture more global structure but may miss fine details. Smaller values focus on local structure but may fragment the manifold.
Default: 15
metric: MetricThe distance metric to use for building the k-NN graph.
Default: Euclidean
normalized: boolWhether to normalize distance outputs before use in the loss.
Default: true
minkowski_p: f64The Minkowski p parameter (only used when metric is Minkowski).
Default: 1.0
Trait Implementations§
Source§impl Clone for GraphParams
impl Clone for GraphParams
Source§fn clone(&self) -> GraphParams
fn clone(&self) -> GraphParams
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 GraphParams
impl Debug for GraphParams
Source§impl Default for GraphParams
impl Default for GraphParams
Source§impl<'de> Deserialize<'de> for GraphParams
impl<'de> Deserialize<'de> for GraphParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GraphParams
impl RefUnwindSafe for GraphParams
impl Send for GraphParams
impl Sync for GraphParams
impl Unpin for GraphParams
impl UnsafeUnpin for GraphParams
impl UnwindSafe for GraphParams
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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