import numpy as np
import pandas as pd
import statsmodels.api as sm
import matplotlib.pyplot as plt
import...best_new_score, best_candidate = aic_with_candidates.pop()
# 1.正无穷大大于解释力度最大值 2.上一期实验的...exog = train[['fico_score', 'tot_derog', 'age_oldest_tr', 'rev_util', 'ltv', 'veh_mileage']]
# 遍历自变量...,获取其VIF值
for i in exog.columns:
print(i, '\t', vif(df=exog, col_i=i))
输出结果如下。...在ROC曲线中,主要涉及到灵敏度与特异度两个指标。
灵敏度表示模型预测响应的覆盖程度。
特异度表示模型预测不响应的覆盖程度。
覆盖度表示预测准确地观测占实际观测的比例。