fix xNES telling
This commit is contained in:
parent
7800510d1f
commit
46f1020bfa
1 changed files with 1 additions and 1 deletions
2
xnes.lua
2
xnes.lua
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue