Getting error'"Objective function is undefined at initial point. Fminunc cannot continue''

3 visualizaciones (últimos 30 días)
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".

Respuestas (1)

Matt J
Matt J el 17 de Abr. de 2022
Editada: Matt J el 17 de Abr. de 2022
Check what value is being returned by your function at the initial point.
  2 comentarios
Torsten
Torsten el 17 de Abr. de 2022
By searching why your code produced a NaN result for the cost at the initial point.

Iniciar sesión para comentar.

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by