From ea121fc29c596664311b9676401d5a007b7714a0 Mon Sep 17 00:00:00 2001 From: Franck Dary <franck.dary@lis-lab.fr> Date: Fri, 16 Jul 2021 16:29:25 +0200 Subject: [PATCH] In printForDebug : no limit on the size of history (to accomodate new script) --- Config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Config.py b/Config.py index 52c8d23..880c39a 100644 --- a/Config.py +++ b/Config.py @@ -90,8 +90,8 @@ class Config : right = 5 print("state :", self.state, file=output) print("stack :",[self.getAsFeature(ind, "ID") for ind in self.stack], file=output) - print("history :",[str(trans) for trans in self.history[-10:]], file=output) - print("historyPop :",[(str(c[0]),"dat:"+str(c[1]),"mvt:"+str(c[2]),"reward:"+str(c[3]),"state:"+str(c[4])) for c in self.historyPop[-10:]], file=output) + print("history :",[str(trans) for trans in self.history], file=output) + print("historyPop :",[(str(c[0]),"dat:"+str(c[1]),"mvt:"+str(c[2]),"reward:"+str(c[3]),"state:"+str(c[4])) for c in self.historyPop], file=output) toPrint = [] for lineIndex in range(self.wordIndex-left, self.wordIndex+right) : if lineIndex not in range(len(self.lines)) : -- GitLab