Error in optimset function
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
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 件のコメント
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 Center および File 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!