Commit 42a5c036 authored by Sam Harrison's avatar Sam Harrison
Browse files

Tweak spatial-temporal netmat interaction metric

Now calculated relative to the ground truth interaction, just to make sure the
baseline is a sensible one.
parent e97684ea
......@@ -222,13 +222,25 @@ scores.pcA_xs.range = [-1.0, 1.0];
% And do the netmats bias one another (NAF2)?
% Repeat spatial correlations to get per-run metrics
cPz = repelem(cPz, 1, params.R);
inf_cPz = repelem(inf_cPz, 1, params.R);
% Each element, across subjects (i.e. behavioural prediction)
scores.cP_pcA_xs.data = diag(corr(inf_cPz', inf_pcAz'));
%scores.cP_pcA_xs.data = reshape(corr(inf_cPz', inf_pcAz'), [], 1);
scores.cP_pcA_xs.data ...
= diag(corr(inf_cPz', inf_pcAz')) - diag(corr(cPz', pcAz'));
scores.cP_pcA_xs.name = 'Spatial-temporal netmat interactions (cross subject)';
scores.cP_pcA_xs.metric = 'Correlation';
scores.cP_pcA_xs.range = [-1.0, 1.0];
scores.cP_pcA_xs.metric = 'Correlation (difference from GT)';
scores.cP_pcA_xs.range = [-2.0, 2.0];
%figure(); plot(cPz(:), pcAz(:), '.')
%figure(); plot(inf_cPz(:), inf_pcAz(:), '.')
%figure; imagesc(cPz, [-1 1]); colorbar
%figure; imagesc(inf_cPz, [-1 1]); colorbar
%figure; imagesc(pcAz, [-1 1]); colorbar
%figure; imagesc(inf_pcAz, [-1 1]); colorbar
%figure(); histogram(diag(corr(inf_cPz, inf_pcAz)) - diag(corr(cPz, pcAz)), 50)
%figure(); histogram(diag(corr(inf_cPz', inf_pcAz')) - diag(corr(cPz', pcAz')), 50)
%--------------------------------------------------------------------------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment