Something wrong in fitrlinear with ridge regularization?

조회 수: 2 (최근 30일)
Peter He
Peter He 2022년 3월 28일
답변: Peter He 2023년 12월 31일
There is something wrong in the attached code. I couldn't figure out where it went wrong. Any help is highly appreciated!
  댓글 수: 5
Biral Pradhan
Biral Pradhan 2022년 9월 28일
The "fitrlinear" method uses iterative solvers that converge subject to tolerances on beta coefficients and gradient. In this case, optimization doesn't occur because the first step does not move the beta estimates away from the initial zero values far enough. Kindly set the "BetaTolerance" parameter to a lower value, say 1e-6 in order to resolve this issue. For more information, kindly follow the below documentation link:
I would also recommend setting "Verbose" to 1 in order to obtain more information throughout the optimization process.
Peter He
Peter He 2023년 12월 31일
Thank you Biral. That indeed was the problem. Here is a link to a related question that I asked and got a similar answer to it. But I was able to verify the problem using that example.
Thanks again.
Peter

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

채택된 답변

Peter He
Peter He 2023년 12월 31일
Thank you Biral. That indeed was the problem. Here is a link to a related question that I asked and got a similar answer to it. But I was able to verify the problem using that example.
Thanks again.
Peter

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Support Vector Machine Regression에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by