def transform_to_correlation_dist(data):
y_corr = np.corrcoef(data.T)
# we just need the magnitude of the correlation and don't care whether it's positive or not
abs_corr = np.abs(y_corr)
return np.nan_to_num(abs_corr)
solar_corr.py 文件源码
python
阅读 46
收藏 0
点赞 0
评论 0
评论列表
文章目录