Spaces:
Running
Running
Commit ·
cd2614d
1
Parent(s): c4f7a28
disable training for pretrained agent
Browse files965 unmodified lines966967968969970971972973100 unmodified lines1074107510761077107810791080965 unmodified linesthis.online = QNetwork.fromJSON(d.online);this.target = QNetwork.fromJSON(d.target);this.EPSILON = typeof d.epsilon === 'number' ? d.epsilon : 1.0;this.trainSteps = d.trainSteps || 0;this.totalSteps = d.totalSteps || 0;this.episodes = d.episodes || 0;this.lossHist = d.lossHist || [];this.rollingReward = d.rollingReward || 0;100 unmodified linesif(this.trainSteps > 5000) this.LR = 0.0001;if(this.trainSteps > 8000) this.LR = 0.00005;if (this.replay.length >= this.BATCH_SIZE) {this.trainBatch();}965 unmodified lines966967968969970971972973974975100 unmodified lines1076107710781079108010811082965 unmodified linesthis.online = QNetwork.fromJSON(d.online);this.target = QNetwork.fromJSON(d.target);this.EPSILON = typeof d.epsilon === 'number' ? d.epsilon : 1.0;this.trainSteps = d.trainSteps ?? 10000;this.totalSteps = d.totalSteps ?? 10000;this.loadedFromWeights = true;this.trainingEnabled = false;this.episodes = d.episodes || 0;this.lossHist = d.lossHist || [];this.rollingReward = d.rollingReward || 0;100 unmodified linesif(this.trainSteps > 5000) this.LR = 0.0001;if(this.trainSteps > 8000) this.LR = 0.00005;if (this.trainingEnabled && this.replay.length >= this.BATCH_SIZE) {this.trainBatch();}
app/viz/dashboard.py+5-3