Nesara S R
Followers: 0 Following: 0
Statistiche
2 Domande
0 Risposte
RANK
282.334
of 289.749
REPUTAZIONE
0
CONTRIBUTI
2 Domande
0 Risposte
ACCETTAZIONE DELLE RISPOSTE
0.0%
VOTI RICEVUTI
0
RANK
of 144.129
CONTRIBUTI
0 Problemi
0 Soluzioni
PUNTEGGIO
0
NUMERO DI BADGE
0
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
0 Punti principali
NUMERO MEDIO DI LIKE
Feeds
Domanda
To compute cost and gradient for a logistic regression problem:the function returns only zeroes even though the correct value is being computed(I know it because I executed the function body separately in command line and checked)
function [J,grad]=costFunction(theta, X, y) m = length(y); z=X*theta; h=sigmoid(z); H=h.'; h1=log(H)*(-y); h2=(log(1-H)...
quasi 5 anni fa | 1 risposta | 0
1
rispostaDomanda
In the following gradient Descent code, theta values are not changing at all( but the for loop is running cz J_history is getting updated). And also even though i have given fprintf no value is being displayed:
function [theta,J_history]=gradientDescent(X, y, theta, alpha, num_iters) %GRADIENTDESCENT Performs gradient descent to learn t...
quasi 5 anni fa | 0 risposte | 0