Getting error'"Objective function is undefined at initial point. Fminunc cannot continue''
显示 更早的评论
I have tried a code for multiclass logistic regression based on IRIS dataset. I have tried it for my dataset.
I am getting this error "Objective function is undefined at initial point. Fminunc cannot continue".
回答(1 个)
Check what value is being returned by your function at the initial point.
2 个评论
SWATHY Kakkooth
2022-4-17
Torsten
2022-4-17
By searching why your code produced a NaN result for the cost at the initial point.
类别
在 帮助中心 和 File Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!