local state info

This commit is contained in:
wassname
2018-11-27 15:41:30 +08:00
parent d1422453c1
commit 46a9ef8561
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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