Skip to content
Snippets Groups Projects
Commit ea121fc2 authored by Franck Dary's avatar Franck Dary
Browse files

In printForDebug : no limit on the size of history (to accomodate new script)

parent 2e1dc7af
No related branches found
No related tags found
No related merge requests found
...@@ -90,8 +90,8 @@ class Config : ...@@ -90,8 +90,8 @@ class Config :
right = 5 right = 5
print("state :", self.state, file=output) print("state :", self.state, file=output)
print("stack :",[self.getAsFeature(ind, "ID") for ind in self.stack], 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("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[-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], file=output)
toPrint = [] toPrint = []
for lineIndex in range(self.wordIndex-left, self.wordIndex+right) : for lineIndex in range(self.wordIndex-left, self.wordIndex+right) :
if lineIndex not in range(len(self.lines)) : if lineIndex not in range(len(self.lines)) :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment