Cost Function, Gradient Descent.
two separate lines with two separate cases for Y equals 1 and Y equals 0, I am going to show you a way take these two lines and compress them into one equation. And this will make it more convenient to write out the cost function and derive gradient descent. Concretely, we can write out the cost