使用交叉验证在物流回归中获得100%的AUC评分

时间:2019-05-20 15:31:36

标签: python logistic-regression cross-validation roc auc

使用Reression logitique进行交叉验证时,我获得了100%的AUC分数

代码

``X_train,X_test,y_train,y_test=train_test_split(X,y,test_size=0.3,random_state=0)
model = LogisticRegression(class_weight= 'balanced')
print(cross_val_score(model, X, y, cv=5, scoring='roc_auc').mean())``

0 个答案:

没有答案