MCPcopy
hub / github.com/jindongwang/transferlearning / pearson_corr

Function pearson_corr

code/deep/adarnn/utils/utils.py:196–200  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

194 return spearman
195
196def pearson_corr(x, y):
197 X = pd.Series(x.cpu())
198 Y = pd.Series(y.cpu())
199 spearman = X.corr(Y, method='pearson')
200 return spearman
201
202def dir_exist(dirs):
203 if not os.path.exists(dirs):

Callers 2

test_ic_uniFunction · 0.85
calc_icFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_ic_uniFunction · 0.68