EmilHvitfeldt / smltar

Manuscript of the book "Supervised Machine Learning for Text Analysis in R" by Emil Hvitfeldt and Julia Silge

Home Page:https://smltar.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

There are `notes` on multiclass model in Ch 7

juliasilge opened this issue · comments

Sometimes we get some notes about convergence for the glmnet model in Ch 7 (only the multiclass model, I think). They look like this:

Warning message:
This tuning result has notes. Example notes on model fitting include:
preprocessor 1/1, model 1/1: from glmnet Fortran code (error code -99); Convergence for 99th lambda value not reached after maxit=100000 iterations; solutions for larger lambdas returned
preprocessor 1/1, model 1/1: from glmnet Fortran code (error code -53); Convergence for 53th lambda value not reached after maxit=100000 iterations; solutions for larger lambdas returned 

I suspect this is due to the unbalanced nature of the classes. I think we should try doing a LIGHT upsample

We have temporarily disabled printing of the tune results to avoid showing these errors 880387c