Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
profumo
PFM_Simulations
Commits
790a2fd1
Commit
790a2fd1
authored
Dec 03, 2019
by
Sam Harrison
Browse files
Expand spatial-temporal netmat interaction tests
Add within subject (i.e. to complement across subject).
parent
42a5c036
Changes
1
Hide whitespace changes
Inline
Side-by-side
Scoring/calculateDecompositionAccuracy.m
View file @
790a2fd1
...
...
@@ -224,6 +224,14 @@ scores.pcA_xs.range = [-1.0, 1.0];
% Repeat spatial correlations to get per-run metrics
cPz
=
repelem
(
cPz
,
1
,
params
.
R
);
inf_cPz
=
repelem
(
inf_cPz
,
1
,
params
.
R
);
% Each subject, across elements (i.e. are netmats similar)
% Cosine sim as zero is meaningful for netmats
scores
.
cP_pcA
.
data
...
=
diag
(
cosine_sim
(
inf_cPz
,
inf_pcAz
))
-
diag
(
cosine_sim
(
cPz
,
pcAz
));
scores
.
cP_pcA
.
name
=
'Spatial-temporal netmat interactions'
;
scores
.
cP_pcA
.
metric
=
'Cosine similarity (difference from GT)'
;
scores
.
cP_pcA
.
range
=
[
-
2.0
,
2.0
];
% Each element, across subjects (i.e. behavioural prediction)
scores
.
cP_pcA_xs
.
data
...
=
diag
(
corr
(
inf_cPz
', inf_pcAz'
))
-
diag
(
corr
(
cPz
', pcAz'
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment