Convergence of PL function during use of fitglme with Parfor loops

2 views (last 30 days)
Hello Mathworks,
Hopefully third and final question about fitglme. Why does the peusdoliklihood (PL) method not converge during parfor loops within 100 iteractions (default) but does during for-loops? The defautl PL threshold is 1e-8 and this is being reached consistently when run with forloops but when I look at the PL error not parfor loops often with the PL error is around 2e-7 after 100 iteractions.
Thanks,
Seth
  1 Comment
Edric Ellis
Edric Ellis on 18 Jul 2022
Do you have any concise reproduction steps that you can share here? I don't know enough about fitglme to be able to make too many sensible suggestions. There aren't many differences between computations running on the MATLAB client and on the workers. The intrinsic multithreadedness is one (you can use maxNumCompThreads(1) at the client to make it behave like a worker), and the other is the default random number generator state - more details here.

Sign in to comment.

Answers (0)

Categories

Find more on Parallel for-Loops (parfor) in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!