from sklearn.linear_model import Logistic Regression lr = Logistic Regression() # 逻辑回归模型