def Conf_Measure(RegModel, Train_Data, True_Labels, ModelType):
Predictions = RegModel.predict(Train_Data)
tau, p_value = stats.kendalltau(True_Labels, Predictions)
R2_Measure = r2_score(True_Labels, Predictions)
print('The Kindell Coefficient of ', ModelType, ' model is ', tau,' with a p-value of ',p_value)
print('The R Square of ', ModelType, ' model is ', R2_Measure)
print('')
return(tau, p_value, R2_Measure)
Conf_Measure.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录