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 Kommentare

KSSV
KSSV am 24 Okt. 2017
Show us the code....so that you can get help.
Ridhima Kumar
Ridhima Kumar am 24 Okt. 2017
That is a pre written code by Coursera
KSSV
KSSV am 24 Okt. 2017
You check with the version course era people used and your version....

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 24 Okt. 2017

0 Stimmen

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 Kommentare

Ridhima Kumar
Ridhima Kumar am 24 Okt. 2017
Thanks Walter. I tried the code after removing GradObj argument. It worked.
Animesh Animesh
Animesh Animesh am 22 Okt. 2018
what exactly did u remove ? options = optimset( 'GradObj', 'on','MaxIter', 400); the above written line of code is causing trouble. what exactly should i do?
Walter Roberson
Walter Roberson am 22 Okt. 2018
Which optimization routine are you trying to call?
Nayana Sharma
Nayana Sharma am 20 Nov. 2018
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by