ada = AdalineGD(eta = 0.001, n_iter = 50) ada.fit(x, y) plot_decision_region(x, y, classifier = ada) plt.title('Adaline-Gradient decent') plt.xlabel('the length of huajing') plt.ylabel('the length of huaban') plt.legend(loc='upper left') plt.show()