Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to compute the partial derivative

조회 수: 2 (최근 30일)
Kumar Thapa
Kumar Thapa 2019년 10월 22일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Kumar Thapa
Kumar Thapa 2019년 10월 22일
Thank you. I am just a very new here so..
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 10월 22일
Welcome Thapa Ji!

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by