mirror of
https://github.com/wassname/rl_2d_walker.js.git
synced 2026-09-09 11:33:20 +08:00
local state info
This commit is contained in:
+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