pub struct Configuration {
pub embedding_dimensions: usize,
pub initialization: Initialization,
pub mid_near_ratio: f32,
pub far_pair_ratio: f32,
pub override_neighbors: Option<usize>,
pub seed: Option<u64>,
pub pair_configuration: PairConfiguration,
pub learning_rate: f32,
pub num_iters: (usize, usize, usize),
pub snapshots: Option<Vec<usize>>,
pub approx_threshold: usize,
}Expand description
Configuration options for the PaCMAP embedding process.
Controls initialization, sampling ratios, optimization parameters, and snapshot capture.
Fields§
§embedding_dimensions: usizeNumber of dimensions in the output embedding space, typically 2 or 3
initialization: InitializationMethod for initializing the embedding coordinates
mid_near_ratio: f32Ratio of mid-near pairs to nearest neighbor pairs
far_pair_ratio: f32Ratio of far pairs to nearest neighbor pairs
override_neighbors: Option<usize>Optional fixed neighbor count override
seed: Option<u64>Optional random seed for reproducibility
pair_configuration: PairConfigurationControls how point pairs are sampled or provided
learning_rate: f32Learning rate for the Adam optimizer
num_iters: (usize, usize, usize)Number of iterations for attraction, local structure, and global structure phases
snapshots: Option<Vec<usize>>Optional iteration indices at which to save embedding states
approx_threshold: usizeNumber of points above which approximate neighbor search is used
Implementations§
Source§impl Configuration
impl Configuration
Sourcepub fn builder() -> ConfigurationBuilder
pub fn builder() -> ConfigurationBuilder
Create an instance of Configuration using the builder syntax
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Configuration
impl Debug for Configuration
Auto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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
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>
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>
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