From 54e523734702460b7ec5f0cbffe25182d790adad Mon Sep 17 00:00:00 2001 From: wassname Date: Tue, 27 Nov 2018 12:56:50 +0800 Subject: [PATCH] plot time delays --- js/agent.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/agent.js b/js/agent.js index 69c942a..5343c45 100644 --- a/js/agent.js +++ b/js/agent.js @@ -79,6 +79,7 @@ Agent.prototype.step = function () { info.loss = this.brain.learn(reward) this.action = this.brain.policy(state) info.x = this.steps + info.time = new Date().getTime() this.infos.push(info) } if (this.action) {