Conf_Measure.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:Stock-Prediction-Time-Series-Analysis-Python 作者: Nekooeimehr 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号