def compute_score(self, conf, hy):
conf['_r2'] = r2_score(self.test_y, hy)
conf['_spearmanr'] = spearmanr(self.test_y, hy)[0]
conf['_pearsonr'] = pearsonr(self.test_y, hy)[0]
conf['_score'] = conf['_' + self.score]
# print(conf)
评论列表
文章目录