cpsievert / LDAvis

R package for web-based interactive topic model visualization.
Other
557 stars 131 forks source link

dist() with jensenShannon returns Nan #55

Closed lmkirvan closed 8 years ago

lmkirvan commented 8 years ago

I can't quit figure out why (as the jensen Shannon distance function looks okay) but

`jensenShannon <- function(x, y) { m <- 0.5_(x + y) 0.5_sum(x_log(x/m)) + 0.5_sum(y*log(y/m)) }

dist.mat <- proxy::dist(x = phi, method = jensenShannon)`

returns Nan using phi.

cpsievert commented 8 years ago

duplicate of #56