Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot function not working #44

Open
reisner opened this issue Feb 27, 2018 · 1 comment
Open

plot function not working #44

reisner opened this issue Feb 27, 2018 · 1 comment

Comments

@reisner
Copy link

reisner commented Feb 27, 2018

After training a model, I get:

Vocab size (unigrams + bigrams): 4655
Words in train file: 14208
Starting training using file temp.prep
Vocab size: 343
Words in train file: 4333

But when I try to use plot, I get this error:

> plot(model)
Error in xy.coords(x, y, xlabel, ylabel, log) :
  'x' and 'y' lengths differ
In addition: Warning message:
In matrix(nextup, ncol = j) :
  data length [343] is not a sub-multiple or multiple of the number of rows [172]

Any ideas would be appreciated. Thanks!

@revsequin
Copy link

Hi! Try this: plot(model, perplexity=50)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants