How to speed up Pymc model compilation of a LDA topic model

The loops you are using are going to be very slow. Using parameter arrays will allow things to be vectorized and thus much more efficient. I would suggest taking a look the LDA example found here for some suggestions.

1 Like