uses k nearest neighbors (class::knn
) to reduce the size of the passed dictionary to a target number of entries by merging the most similar clusters.
1 | reduce.dictionary(dic, cl.size, t.num = 1000, d.metric = 1)
|
dic |
dictionary(=cluster centers) / |
cl.size |
size of each cluster / |
t.num |
target dictionary size |
d.metric |
distance metric to use for similarity comparison == 1: Euclidean, ==2: Cosine |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.