Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom logsumexp for LdaModel optimization (#1745)
* inline a barebones version of logsumexp for improved performance logsumexp accounts for 50% of the run time of ldamodel. Much of this time is spent by "robustness" checks performed by scipy's logsumexp (eg, _asarray_validated, checks for NaNs, etc.). Removing these checks greatly improves the overall performance of ldamodel. Eg, run time when fitting a lda model on the enron dataset (from UCI) decreases from 20-40%. * converting to numpy style docstring * remove trailing whitespaces
- Loading branch information