<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style><style type="text/css"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Dear FieldTrippers,
<div><br>
</div>
<div>For my master's project I am trying to classify my MEG data on the orientation of a grating-stimulus (presented for 1sec). I do this in a time-resolved manner so I get the classifier accuracy over time, which means I classify on 20ms windows and slide
this window every 2.5ms. Up till now I used the cfg.method = 'crossvalidate' in ft_timelockstatistics (so, five fold crossvalidation). My question now is as follows:</div>
<div><br>
</div>
<div>instead of training on 80% of the trials and testing on 20% of the trials for the selected time window, I want to train the classifier on the whole second the stimulus is on-screen (except the selected time-window) and then test it on the selected timewindow.
Moreover, i want to do this for two cases:</div>
<div>- independent for each trial. So for each trial train on the 1sec window (of only that trial) and test on the selected 20ms window (of that trial).</div>
<div>- for all trials together. Train on the 1sec window of all trials, test on the selected 20ms window of all trials.</div>
<div><br>
</div>
<div>So in short, I'm looking for a way to tell the classifier what to train on and what to test on.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>For completeness, I'm using the latest fieldtrip on the torque cluster with matlab2015a.</div>
<div>after ft_timelockanalysis, I've been using the following code:</div>
<div>
<div><i> cfg = [];</i></div>
<div><i> cfg.layout = 'CTF275.lay';</i></div>
<div><i> cfg.method = 'crossvalidate';</i></div>
<div><i> cfg.nfolds = 5; </i></div>
<div><i> cfg.design = [ones(size(counterclockwise.trial,1),1); 2*ones(size(clockwise.trial,1),1)]';</i></div>
<div><i> <span style="font-size: 10pt;">cfg.latency = [tBegin tBegin+0.02]; % 20ms window</span></i></div>
<div><i> cfg.statistic = {'accuracy' 'binomial' 'contingency'};</i></div>
<div><i> s</i><i style="font-size: 10pt;">tat = ft_timelockstatistics(cfg,counterclockwise, clockwise);</i></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Thank you for your help!</div>
<div>Mats van Es</div>
</div>
</body>
</html>