Subject: |
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? Or please can you explain the code for fminunc so that i can debug it in my file. I cant understand it mys |