How to compute the partial derivative
Infos
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Afficher commentaires plus anciens
Compute the partial derivative of the following loss function with respect to θj:
J(θ0, θ1, θ2) = -1/m sum_{i = 1}^m [y(i) * log(hθ(x(i))) + (1 - y(i)) log(1 - hθ(x(i)))],
where hθ(x) = 1/(1 + exp(-(θ0 + θ1 x1 + θ2 x2)).
And I write the following ..
sysm x1 x2 theta0 theta1 theta2 y
h(theta0, theta1, theta2) = 1/(1+exp(-(theta0 + theta1*x1 + theta2*x2)));
I dont know how to differentiate the function using : diff (function, var)..
3 commentaires
KALYAN ACHARJYA
le 22 Oct 2019
Apart from deletion of the previous question, you can edit the question to update it, so that conv are remains.
Kumar Thapa
le 22 Oct 2019
KALYAN ACHARJYA
le 22 Oct 2019
Welcome Thapa Ji!
Réponses (0)
Cette question est clôturée.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!