Convergence of PL function during use of fitglme with Parfor loops

2 visualizzazioni (ultimi 30 giorni)
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 Commento
Edric Ellis
Edric Ellis il 18 Lug 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.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Parallel for-Loops (parfor) in Help Center e File Exchange

Prodotti


Release

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by