Convergence of PL function during use of fitglme with Parfor loops
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Edric Ellis
2022 年 7 月 18 日
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.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Parallel for-Loops (parfor) についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!