Closed lejon closed 9 years ago
There is a faster, simpler way to evaluate the gradient. It involves the following two lines of code (P, Q, and num are defined in the same way):
L = (P - Q) .* num; y_grads = 4 * (diag(sum(L, 1)) - L) * ydata;
Implemented in both SimpleTSne and FastTSne
There is a faster, simpler way to evaluate the gradient. It involves the following two lines of code (P, Q, and num are defined in the same way):