oreillymedia / t-SNE-tutorial

A tutorial on the t-SNE learning algorithm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

self-defined function “_joint_probabilities_constant_sigma” not correct

colinwxl opened this issue · comments

it should be as follow:

def _joint_probabilities_constant_sigma(D, sigma):
    P = np.exp(-D**2/(2 * sigma**2))
    P /= np.sum(P, axis=1)
    return P