项目演示:https://www.bilibili.com/video/BV1jv4y1p7nQ/?spm_id_from=333.999.0.0
本博客附完整的数据代码
代码:
# -*- coding: utf-8 -*- # 全国大数据创新应用大赛用户贷款风险预测 import lightgbm as lgb import pandas as pd from sklearn.model_selection import StratifiedKFold import numpy as np from sklearn.metrics import roc_curve,roc_auc_score def ks_score(true, preds): fpr, tpr, thre=roc_curve(true, preds, pos_label=1) retur