机器学习逻辑回归
lr_clf = LogisticRegression() 模型初始化
plt.scatter(x_fearures[:,0],x_fearures[:,1], c=y_label, s=50, cmap=‘viridis’)
自己对画图库matplotlib.pyplot 和seaborn了解不够,
##定义逻辑回归模型
clf=LogisticRegression(random_state=0,solver=‘lbfgs’)
这里的random_state就是为了保证程序每次运行都分割一样的训练集和测试集