You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
valueError: perplexity must be less than n_samples #9
My corpus has 49 records, which is not a short text.
No error is reported when T>=6, but an error is reported when T<=5
model = btm.BTM(X, vocab, T=5, M=50, alpha=1, beta=0.01)
model.fit(biterms, iterations=100)
tmp.report(model=model, docs=content_flat) valueError: perplexity must be less than n_samples
I found that this error is not directly related to the level of perplexity
T=5 perplexity:263.31198210806156
T=6 perplexity:251.15355539215517
the number of records is 49
Activity
maximtrp commentedon Oct 23, 2023
Hello! Thank you for reporting this. Will check it as soon as I can.
fixed tsne perplexity error (#6, #9), minor code improvements, tests …
maximtrp commentedon Oct 27, 2023
New version is out! Please check it
Yif18 commentedon Nov 2, 2023
I have tried version 0.1.1 and the problem has been solved. Thank you very much.