JuliaText / TextAnalysis.jl

Julia package for text analysis
Other
373 stars 95 forks source link

Latent Dirichlet allocation: display a progress bar during Gibbs sampling #250

Closed DilumAluthge closed 3 years ago

DilumAluthge commented 3 years ago

When running the lda function, the Gibbs sampling can take a long time if the corpus is very large. Without a progress bar, it can be hard to tell how much progress has been made, and how much time is remaining.

This pull request adds a progress bar that gets displayed during the Gibbs sampling.

To disable the progress bar, set the showprogress keyword argument to false, i.e.:

ϕ, θ = lda(dtm, ntopics, iterations, α, β; showprogress = false)
DilumAluthge commented 3 years ago

Failures on nightly are #252

DilumAluthge commented 3 years ago

Bump @aviks

DilumAluthge commented 3 years ago

Thanks! Would it be possible to register a new release?

aviks commented 3 years ago

Would it be possible to register a new release?

Yeah, once I manage to fix #252 ...