(x, y)
| 194 | return spearman |
| 195 | |
| 196 | def 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 | |
| 202 | def dir_exist(dirs): |
| 203 | if not os.path.exists(dirs): |
no outgoing calls