Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Convergence error, unexplained / uninformative error message. #425
Comments
alexWhitworth
commented
Jun 23, 2017
|
Crossposted on stackoverflow: https://stackoverflow.com/questions/44727311/problems-with-model-convergence-error-in-ans-retmeth-canspar-ansvalu |
|
A few more thoughts on this (I started to run the example case above and got impatient):
|
|
Are the convergence diagnostics programmed to take into account that convergence on the boundary does not require the elements of the gradient to be near zero? I have a vague recollection that they don't, which means they will always be false positives in such a case. In my experience with the Julia code, the difference between the optimum with |
alexWhitworth
commented
Jun 27, 2017
|
@bbolker Can you provide example code for the below and I'll test them on the production-data? Two ways to get around this are (1) try nAGQ=0 (although this may sacrifice too much accuracy)? (2) make the prod term (which is a 26-level factor, i.e. adds 26 columns to the fixed-effects model matrix) into a random effect, but force its variance to be large (in effect reverting to treating it as a fixed effect). Thanks, Alex |
|
Posted some example code in my latest commit, as |
|
Quick interim results for the N=26000 case:
Results (method, elapsed time in seconds, log-likelihood):
|
|
I haven't had any time to work on this further. Have you made any progress? |
alexWhitworth
commented
Jul 4, 2017
|
I similarly haven't had any time to work on it yet.
…
|
alexWhitworth
commented
Jul 8, 2017
•
|
@bbolker you may find Norm Matloff's (github @matloff) discussion here useful... Though it appears (comments) that @dmbates has already investigated this in Julia |
|
I may look at this at some point. I could certainly write a 'chunked' version of |
alexWhitworth commentedJun 23, 2017
•
edited
I'm using
lme4to build a collaborative filter and running into convergence issues. Trying to solve via the following resources and getting a new error:This after the model was running towards convergence for ~ 48 hours.
I have a model that's structured as follows:
I haven't guaranteed that the above data reproduces the error; but that's the model setup. I don't understand the error message at all
NOTE: in my true use case, I have closer to 15.5M observations and 30-50 products where each product has a different average response rate (y)