逻辑回归的一般过程
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/bd4a6e028921969ac1da22899efcf90c.png)
实现逻辑回归的二分类与多分类
import numpy as np
from sklearn import datasets
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import train_test_split
X,y=datasets.load_iris(True)
cound=y!=2
X=X[cound]
y=y[cound]
result=train_test_split