Vectorized cost function
Updated Cost Function
Fixed regulization in cost function.
Separated predicition function
Sample output