fix learning without negate_trials
This commit is contained in:
parent
bcb6cb9da1
commit
d6cc49cde1
6
main.lua
6
main.lua
|
@ -202,7 +202,11 @@ local function prepare_epoch()
|
|||
end
|
||||
|
||||
local function load_next_trial()
|
||||
if cfg.negate_trials then trial_neg = not trial_neg end
|
||||
if cfg.negate_trials then
|
||||
trial_neg = not trial_neg
|
||||
else
|
||||
trial_neg = true
|
||||
end
|
||||
trial_i = trial_i + 1
|
||||
if trial_i == 0 and not cfg.unperturbed_trial then
|
||||
trial_i = 1
|
||||
|
|
Loading…
Reference in New Issue
Block a user