Data Science Asked by BioMatt on August 31, 2020
As the title says, how do I calculate a similarity matrix with an un-normalized Student-t kernel? I’m attempting to calculate Kullback-Leibler divergence for different t-SNE runs, but need a Q-matrix for that. A few steps before the Q-matrix, I need the similarity matrices made using the un-normalized Student-t kernel.
I’m using r, not sure if that’s relevant to an answer.
You can use dt
from the stats
to get the density of a Student-t distribution. See the help page for extra information about this, and related, functions.
An example, showing the Student-t distrib
library(stats)
xs = seq(-5, 5, .1)
density = dt(xs, df=1)
plot(xs, density)
Answered by Pieter on August 31, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP