-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBATCH_SACLEN.m
126 lines (87 loc) · 2.62 KB
/
BATCH_SACLEN.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
function [] = BATCH_SACLEN(pars)
%%%%% SACCADE LENGTH CONTAINER SCRIPT, updated 2010 Alex Cope
%%% LOAD STANDARD PARAMETERS
DEFAULTS
%%% TRICKS
comp_input_from_fovea = false;
more_input_from_periphery = false;
more_phasic_in_periphery = false;
fixation_nogo_on = false;
fovea_striatum_compensation = false;
fovea_striatum_comp_v2 = true;
fix_passthough = false;
%%%
jon_model = false;
degrees_to_edge = 30;
hack_model = true;
%%%
%% Flags:
scopesOn = 0;
scopeOn = 0; %% vis scopes
concerto = false;
logging_on = 20; % 0 = none, 1 = light, 2 = heavy, higher numbers are task specific
%% Scopes:
%scopeTarg = 'SC_buildup/out>out';
scopeTarg = 'FEF/out>out';
scopeTarg2 = 'BG/STN/out>out';
scopeTargA = 'SC_buildup/out>out';
scopeTargB = 'BG/SNr/out>out';
visModel = 'digit';
taskType = 'SACLEN';
%% exePars
executionStop = 4.0;
fS = 400;
num_samples = fS * executionStop;
%% Bias:
%%%%%% set some interesting desire levels for features
if strcmp(visModel, 'digit')
num_channels = 10;
else
num_channels = 6;
end
D2_BIAS = 0.15;
DOPAMINE = 0.2;
%% Loop start:
for biasMode=1:1
runString = ['_' taskType '_' int2str(biasMode) '_' int2str(pars.fbType) '_' int2str(pars.numDist) '_' int2str(pars.targetLoc)];
eval(['fileStr = ''perfdata' runString ''';']);
eval([fileStr ' = {};']);
if (exist(['./dataTemp/' fileStr '.mat']) == 0)
for repeatRun = 1:40
visSys ='gate3';
% end never end sim but log all saccades
targetMode = 2;
targetVals = {};
targetVals{1} = [500 200 1];
targetVals{2} = [500 200 1];
%% Bias:
%%%%%% set some interesting desire levels for features
data = zeros(num_channels, num_samples);
if biasMode == 1
data(5,1:num_samples) = 0.2; % 6
end
if biasMode == 2
data(8,1:num_samples) = 0.32; % o
data(9,1:num_samples) = 0.32; % c
end
numDist = pars.numDist;
runNum = pars.targetLoc;
%%%%%%%%%%% RUN IT
overrideName = ['sys_' runString];
RUN_MODEL
%% ANALYSE
%timeTaken = out.orient.SG.target(end) - 0.2;
resArr = [];
for i = 1:size(out.orient.SG.target,2)
if out.orient.SG.target(2,i) > 0
resArr = [resArr, out.orient.SG.target(:,i) - [0; 0.2; 0; 0; 0; 0]];
end
end
eval([fileStr ' = [' fileStr '; resArr];']);
%% Loop end:
end
% save data
eval(['save ./dataTemp/' fileStr ' ' fileStr ';']);
end
end
end