glmfit inside parfor (Iteration limit reached)

조회 수: 10 (최근 30일)
Marzi
Marzi 2015년 10월 30일
편집: Luca Martello 2016년 11월 27일
I am running the glmfit inside the parfor loop. I have got the following error, however, when I run it inside for loop, I do not get any error. Is there any inconsistency between parfor and glmfit? I should make it parallel in order to save time.
Warning: Iteration limit reached. > In glmfit at 368 In parallel_function>make_general_channel/channel_general at 914 In remoteParallelFunction at 38

채택된 답변

Tushar Sinha
Tushar Sinha 2015년 11월 3일
Hi Marzi,
Iteration limit for "glmfit" is set to 100. This is a limitation and you cannot change this value unless you edit the function and change it manually. I work at Mathworks and I have forwarded this to the appropriate product team for consideration.
Meanwhile, you can look at the following MATLAB Answers link which talks about resolving a similar issue by modifying the code for "glmfit":
I hope this helps resolve the issue.
Thanks,
Tushar
  댓글 수: 1
Marzi
Marzi 2015년 11월 3일
Thank you so much for your response and also further consideration.
I was dealing with iteration limit before. However, this case is different. When I run the glmfit regularly, I would not get the iteration limit warning, however, when I run in within parfor I get this warning which is strange since they are supposed to run independently.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Luca Martello
Luca Martello 2016년 11월 27일
편집: Luca Martello 2016년 11월 27일
Did you manage to solve this problem? I am gettin the same Warning and I don't know how to get out of it!

카테고리

Help CenterFile Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by