mirror of
https://github.com/wassname/rl_2d_walker.js.git
synced 2026-10-30 13:40:59 +08:00
local state info
This commit is contained in:
1 parent
d1422453c1
commit
46a9ef8561
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -23,7 +23,7 @@ function Agent(opt, world) {
|
||||
Agent.prototype.init = function (actor, critic) {
|
||||
var actions = this.walker.joints.length
|
||||
var temporal = 1
|
||||
var states = this.walker.bodies.length * 7
|
||||
var states = this.walker.bodies.length * 10 + this.walker.joints.length * 3
|
||||
|
||||
var input = window.neurojs.Agent.getInputDimension(states, actions, temporal)
|
||||
|
||||
|
||||
+2
-1
@@ -53,7 +53,8 @@ displayProgress = function () {
|
||||
gameInit = function() {
|
||||
var joints = 12
|
||||
var bodyParts = 14
|
||||
var state = bodyParts * 7
|
||||
var joints = 12
|
||||
var state = bodyParts * 10 + joints * 3
|
||||
var actions = joints
|
||||
var input = 2 * state + 1 * actions
|
||||
|
||||
|
||||
Reference in new issue
Block a user