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.5perplexity
: 5.0max_iter
: 2000rng
: SmallRng with seed 42
Create a t-SNE param set with given embedding size and random number generator
Defaults to:
approx_threshold
: 0.5perplexity
: 5.0max_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 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
type Checked = TSneValidParams<F, R>
type Checked = TSneValidParams<F, R>
The checked hyperparameters
Checks the hyperparameters and returns the checked hyperparameters if successful
Calls check()
and unwraps the result