Error in optimset function

조회 수: 1 (최근 30일)
Ridhima Kumar
Ridhima Kumar 2017년 10월 24일
댓글: Nayana Sharma 2018년 11월 20일
I am taking Machine Learning course from Coursera. When I run the code in MATLAB(R2017), I am getting error in some optimset function. Error is copied below:
Error using optimset (line 255) Unrecognized parameter name 'GradObj'. Please see the optimset reference page in the documentation for a list of acceptable option parameters. Link to reference page.
How do I resolve this issue.
Regards Ridhima Kumar
  댓글 수: 3
Ridhima Kumar
Ridhima Kumar 2017년 10월 24일
That is a pre written code by Coursera
KSSV
KSSV 2017년 10월 24일
You check with the version course era people used and your version....

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

채택된 답변

Walter Roberson
Walter Roberson 2017년 10월 24일
GradObj is not a valid option to optimset() unless a license is present for one of the following products:
Optimization Toolbox
Curve Fitting Toolbox
Statistics and Machine Learning Toolbox
Computer Vision Toolbox
System Identification Toolbox
  댓글 수: 4
Walter Roberson
Walter Roberson 2018년 10월 22일
Which optimization routine are you trying to call?
Nayana Sharma
Nayana Sharma 2018년 11월 20일
Hi Animesh, you can remove the parameter GradObj and its value 'on' from the list of parameters for optimset function, and the code runs without error. i.e. just use options = optimset('MaxIter', 400);
Hope this helps.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by