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".

Antworten (1)

Matt J
Matt J am 17 Apr. 2022
Bearbeitet: Matt J am 17 Apr. 2022
Check what value is being returned by your function at the initial point.

2 Kommentare

The cost value returned is NaN. How this can be avoided?
By searching why your code produced a NaN result for the cost at the initial point.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020b

Gefragt:

am 17 Apr. 2022

Kommentiert:

am 17 Apr. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by