Simplified cost function and gradient descent
-simpler cost function
-apply gradient descent to logistic regression
-fully ready logistic regression
this is more simpler and compact way for calculating cost function
-apply gradient descent to logistic regression
-fully ready logistic regression
taking advantage of y equals either 0 or 1,
making one line of cost function and disabling y each other..