整理记录,不定期更新 评测指标 from scipy.stats import ks_2samp ks_value = lambda y_pred,y_true: ks_2samp(y_pred[y_true==1], y_pred[y_true!=1]).statistic from sklearn import metrics print 'AUC: %.4f' % metrics.roc_auc_score(test_y,y_pred) print