pub struct DiffusionMapParams(/* private fields */);
Expand description
Diffusion map hyperparameters
The diffusion map algorithms has only two explicit hyperparameter. The first is the stepsize. As the algorithm calculates the closeness of points after a number of steps taken in the diffusion graph, a larger step size introduces a more global behaviour of the projection while a smaller one (especially one) just projects close obserations closely together. The second parameter is the embedding size and defines the target dimensionality.
Implementations§
Source§impl DiffusionMapParams
impl DiffusionMapParams
Sourcepub fn steps(self, steps: usize) -> Self
pub fn steps(self, steps: usize) -> Self
Set the number of steps in the diffusion operator
The diffusion map algorithm expresses the transition probability with a kernel matrix and then takes multiple steps along the diffusion operator. In practice scales the eigenvalues of the decomposition exponentially with the number of steps.
pub fn embedding_size(self, embedding_size: usize) -> Self
Trait Implementations§
Source§impl Clone for DiffusionMapParams
impl Clone for DiffusionMapParams
Source§fn clone(&self) -> DiffusionMapParams
fn clone(&self) -> DiffusionMapParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DiffusionMapParams
impl Debug for DiffusionMapParams
Source§impl Default for DiffusionMapParams
impl Default for DiffusionMapParams
Source§impl ParamGuard for DiffusionMapParams
impl ParamGuard for DiffusionMapParams
Source§type Checked = DiffusionMapValidParams
type Checked = DiffusionMapValidParams
Source§type Error = ReductionError
type Error = ReductionError
Source§fn check_ref(&self) -> Result<&Self::Checked, Self::Error>
fn check_ref(&self) -> Result<&Self::Checked, Self::Error>
Source§fn check(self) -> Result<Self::Checked, Self::Error>
fn check(self) -> Result<Self::Checked, Self::Error>
Source§fn check_unwrap(self) -> Self::Checkedwhere
Self: Sized,
fn check_unwrap(self) -> Self::Checkedwhere
Self: Sized,
check()
and unwraps the resultSource§impl PartialEq for DiffusionMapParams
impl PartialEq for DiffusionMapParams
impl Eq for DiffusionMapParams
impl StructuralPartialEq for DiffusionMapParams
impl TransformGuard for DiffusionMapParams
Auto Trait Implementations§
impl Freeze for DiffusionMapParams
impl RefUnwindSafe for DiffusionMapParams
impl Send for DiffusionMapParams
impl Sync for DiffusionMapParams
impl Unpin for DiffusionMapParams
impl UnwindSafe for DiffusionMapParams
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.