help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: madhav
Subject:
Date: Sat, 25 May 2019 18:20:12 +0530

Hi,

I tried to find the optimum theta using fminunc function with rand initial theta for simple logistic regression model(not NN). But i got the following warning as,

 

                             warning: division by zero

                             warning: called from

                               fminunc at line 288 column 15

 

But it provided an output theta which when i verified taking the training set as testing data and it gave utter incorrect results and hence the output theta is not the optimum theta. But when i initialized the initial theta as zero vector, i got the correct optimum theta. Hence this function works good only for zero vector initialization. So there must be some bug in the code of the function fminunc. Is there any alternative function for fminunc?

 

Sent from Mail for Windows 10

 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]