fix xNES telling

This commit is contained in:
Connor Olding 2018-06-13 03:01:17 +02:00
parent 7800510d1f
commit 46f1020bfa

View file

@ -179,12 +179,12 @@ function Xnes:tell(scored, noise)
-- finally, update according to the gradients.
local dotted = dot_mv(self.covars, g_delta)
local step = {}
for i, v in ipairs(dotted) do
step[i] = self.sigma * v
end
local dotted = dot_mv(self.covars, g_delta)
for i, v in ipairs(self.mean) do
self.mean[i] = v + self.mean_adapt * step[i]
end