Struct linfa_tsne::TSneParams[][src]

pub struct TSneParams<F, R>(_);

Implementations

Create a t-SNE param set with given embedding size

Defaults to:
  • approx_threshold: 0.5
  • perplexity: 5.0
  • max_iter: 2000
  • rng: SmallRng with seed 42

Create a t-SNE param set with given embedding size and random number generator

Defaults to:
  • approx_threshold: 0.5
  • perplexity: 5.0
  • max_iter: 2000

Set the approximation threshold of the Barnes Hut algorithm

The threshold decides whether a cluster centroid can be used as a summary for the whole area. This was proposed by Barnes and Hut and compares the ratio of cell radius and distance to a factor theta. This threshold lies in range (0, inf) where a value of 0 disables approximation and a positive value approximates the gradient with the cell center.

Set the perplexity of the t-SNE algorithm

Set the maximal number of iterations

Set the number of iterations after which the true P distribution is used

At the beginning of the training process it is useful to multiply the P distribution values by a certain factor (here 12x) to get the global view right. After this number of iterations the true P distribution value is used. If None the number is estimated.

Trait Implementations

Validates parameters

The checked hyperparameters

Error type resulting from failed hyperparameter checking

Checks the hyperparameters and returns the checked hyperparameters if successful

Calls check() and unwraps the result

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.