dselivanov / text2vec

Fast vectorization, topic modeling, distances and GloVe word embeddings in R.
http://text2vec.org
Other
850 stars 135 forks source link

Error: missing value where TRUE/FALSE needed #244

Closed santoshbs closed 6 years ago

santoshbs commented 6 years ago

Hi, I have recently started getting these errors: Error in if (cost/n_nnz/2 > 0.5) warning("Cost is too big, probably something goes wrong... try smaller learning rate", : missing value where TRUE/FALSE needed

Could someone guide on what to do?

Thanks, Santosh

dselivanov commented 6 years ago

Try to set up smaller learning rate in GloVe - sgd can't converge using learning rate you use:

glove = GlobalVectors$new(learning_rate = 0.001)

Also please try to provide reproducible example.