408f12dec2ff56559a26873a848a09e4c8facfeb,brainiak/isc.py,,isc,#Any#Any#Any#Any#,76
Before Change
elif pairwise:
iscs = squareform(np.corrcoef(voxel_data), checks=False)
elif not pairwise:
iscs = np.array([pearsonr(subject,
mean(np.delete(voxel_data,
s, axis=0),
axis=0))[0]
for s, subject in enumerate(voxel_data)])
voxel_iscs.append(iscs)
iscs_stack = np.column_stack(voxel_iscs)
After Change
elif pairwise:
// Swap axes for np.corrcoef
data = np.swapaxes(data, 2, 0)
// Loop through voxels
voxel_iscs = []
for v in np.arange(data.shape[1]):
voxel_data = data[:, v, :]
// Correlation matrix for all pairs of subjects (triangle)
iscs = squareform(np.corrcoef(voxel_data), checks=False)
voxel_iscs.append(iscs)
iscs_stack = np.column_stack(voxel_iscs)
// Compute leave-one-out ISCs
elif not pairwise:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: brainiak/brainiak
Commit Name: 408f12dec2ff56559a26873a848a09e4c8facfeb
Time: 2019-04-19
Author: sam.nastase@gmail.com
File Name: brainiak/isc.py
Class Name:
Method Name: isc
Project Name: dmlc/gluon-nlp
Commit Name: 3c874575bf40e8b1fa2280371131a8f29ebb3e98
Time: 2020-07-28
Author: xshiab@connect.ust.hk
File Name: src/gluonnlp/models/roberta.py
Class Name: RobertaModel
Method Name: hybrid_forward
Project Name: dmlc/gluon-nlp
Commit Name: 3c874575bf40e8b1fa2280371131a8f29ebb3e98
Time: 2020-07-28
Author: xshiab@connect.ust.hk
File Name: src/gluonnlp/models/mobilebert.py
Class Name: MobileBertModel
Method Name: hybrid_forward