Cost Function, Gradient Descent.
plt.xlabel("Feature") plt.ylabel("Label") plt.title("Logistic Regression Example") x_values = np.array([np.min(X), np.max(X)]) # y_values = -(theta_final[0] + theta_final[1] * x_values) / theta_final[2] y_values = -(theta_final[0] + theta_final[1] * x_values) plt.plot(x_values, y_values,