What is the generalized cost function?
What is the generalized cost function? Correct Answer cost(h(x),y) = -y*log(h(x)) – (1 – y)*log(1-h(x))
cost(h(x),y) = -y*log(h(x)) when y = 1, and – (1 – y)*log(1-h(x)) when y = 0 Thus the generalized function cost(h(x),y) = -y*log(h(x)) – (1 – y)*log(1-h(x)) becomes cost(h(x),y) = -y*log(h(x)) when y = 1 as (1 – y) is 0 and becomes – (1 – y)*log(1-h(x)) when y = 0.
মোঃ আরিফুল ইসলাম
Feb 20, 2025