remove defer_prints option (now always true)
This commit is contained in:
parent
0fb3b1780f
commit
15f0292485
2 changed files with 1 additions and 7 deletions
|
@ -13,8 +13,6 @@ local function intmap(x)
|
|||
end
|
||||
|
||||
local common_cfg = {
|
||||
defer_prints = true,
|
||||
|
||||
playable_mode = false,
|
||||
playback_mode = false,
|
||||
start_big = false,
|
||||
|
|
6
main.lua
6
main.lua
|
@ -206,7 +206,6 @@ local function load_next_pair()
|
|||
|
||||
if trial_i > 0 then
|
||||
if trial_neg then
|
||||
if not cfg.defer_prints then print('trial', trial_i, 'positive') end
|
||||
local noise = trial_noise[trial_i]
|
||||
for i, v in ipairs(base_params) do
|
||||
W[i] = v + noise[i]
|
||||
|
@ -214,7 +213,6 @@ local function load_next_pair()
|
|||
|
||||
else
|
||||
trial_i = trial_i - 1
|
||||
if not cfg.defer_prints then print('trial', trial_i, 'positive') end
|
||||
local noise = trial_noise[trial_i]
|
||||
for i, v in ipairs(base_params) do
|
||||
W[i] = v - noise[i]
|
||||
|
@ -222,8 +220,6 @@ local function load_next_pair()
|
|||
end
|
||||
|
||||
trial_neg = not trial_neg
|
||||
else
|
||||
if not cfg.defer_prints then print("test trial") end
|
||||
end
|
||||
|
||||
network:distribute(W)
|
||||
|
@ -433,7 +429,7 @@ local function do_reset()
|
|||
-- be a little more descriptive.
|
||||
if state == 'dead' and game.get_timer() == 0 then state = 'timeup' end
|
||||
|
||||
if trial_i >= 0 and cfg.defer_prints then
|
||||
if trial_i >= 0 then
|
||||
if trial_i == 0 then
|
||||
print('test trial reward:', reward, "("..state..")")
|
||||
elseif cfg.negate_trials then
|
||||
|
|
Loading…
Reference in a new issue