hassonlab / 247-encoding

Contains python scripts for performing encoding on 247 data.
0 stars 9 forks source link

print standard error on the correlation from all folds #74

Open hvgazula opened 1 year ago

hvgazula commented 1 year ago

https://github.com/hassonlab/247-encoding/blob/e0b7468824bc950f15dd8e47f9b7c4bdb3615109/scripts/tfsenc_utils.py#L175-L185

Write a for loop around rp (make it a dict or list) using fold_tes as indexing. For example

rp = dict()
for i in fold_tes.unique():
    rp[i], _, _ = encColCorr(Y_new[fold_tes == i], PY_hat[fold_tes == i]) 
hvgazula commented 1 year ago

@VeritasJoker comments?

VeritasJoker commented 1 year ago

Yeah should work

leoniekerken commented 1 year ago

Thanks! I'm on it.