Struct linfa_reduction::diffusion_map::DiffusionMapParams[][src]

pub struct DiffusionMapParams {
    pub steps: usize,
    pub embedding_size: usize,
}

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.

Fields

steps: usizeembedding_size: usize

Implementations

impl DiffusionMapParams[src]

pub fn steps(self, steps: usize) -> Self[src]

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. This scales in practice the eigenvalues of the decomposition exponentially with the number of steps.

pub fn validate(&self) -> Result<()>[src]

Validates the parameter

Trait Implementations

impl<'a, F: Float + Lapack> Transformer<&'a KernelBase<ArrayBase<OwnedRepr<F>, Dim<[usize; 2]>>, CsMatBase<F, usize, Vec<usize, Global>, Vec<usize, Global>, Vec<F, Global>, usize>>, Result<DiffusionMap<F>, Error>> for DiffusionMapParams[src]

fn transform(&self, kernel: &'a Kernel<F>) -> Result<DiffusionMap<F>>[src]

Project a kernel matrix to its embedding

Parameter

  • kernel: Kernel matrix

Returns

Embedding for each observation in the kernel matrix

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,