TSTagger: Difference between revisions
Jump to navigation
Jump to search
(Created page with "A MATLAB function named TSTagger has been written to facilitate assigning volumes from a time series to a particular condition for supervised learning in a neural network. '...") |
No edit summary |
||
Line 1: | Line 1: | ||
A MATLAB function named TSTagger has been written to facilitate assigning volumes from a time series to a particular condition for supervised learning in a neural network. | A MATLAB function named TSTagger has been written to facilitate assigning volumes from a time series to a particular condition for supervised learning in a neural network. The function has no return value, but instead writes a series of .csv files. Each row in the .csv file represents an event from the time series. The input patterns are the median values from each column of the time series within a 5-second window following the event onset. | ||
'''function TSTagger(varargin)''' | '''function TSTagger(varargin)''' |
Revision as of 22:27, 17 May 2018
A MATLAB function named TSTagger has been written to facilitate assigning volumes from a time series to a particular condition for supervised learning in a neural network. The function has no return value, but instead writes a series of .csv files. Each row in the .csv file represents an event from the time series. The input patterns are the median values from each column of the time series within a 5-second window following the event onset.
function TSTagger(varargin) Isolate TimeSeries data associated with each condition in a .mat runtime file Mandatory arguments: condition: a cell array of condition codes matching values in the condition column tr: scan interval (E.g. 2.047) mat: a cell array of time series matrices expinfo: a cell array of the runtime expinfo structures corresponding to the timeseries matrices Optional arguments: duration: a scalar indicating the number of volumes for each event (default: 1) volumes_dropped: number of INITIAL volumes dropped (i.e., volumes from the start of the run), either as a single value or else as a vector of numbers. If a single value is provided, it will be applied to all paired data files, otherwise the values will be applied to the corresponding dat argument cell