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 件)

Matt J
Matt J 2022 年 4 月 17 日
編集済み: Matt J 2022 年 4 月 17 日

1 投票

Check what value is being returned by your function at the initial point.

2 件のコメント

SWATHY Kakkooth
SWATHY Kakkooth 2022 年 4 月 17 日
The cost value returned is NaN. How this can be avoided?
Torsten
Torsten 2022 年 4 月 17 日
By searching why your code produced a NaN result for the cost at the initial point.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

製品

リリース

R2020b

質問済み:

2022 年 4 月 17 日

コメント済み:

2022 年 4 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by