Artificial Intelligence, Data Science, Machine Learning, Heartbeat, Gradient Descent.
Randomly initialize weights Calculate the loss Make a step by updating the gradients Repeat until gradient descent converges. def gradient_descent(X, y, params, alpha, n_iter): """ Gradient descent to minimize cost function __________________ Input(s) X: Training data y: Labels params: Dictionary