More; Better; Faster; Stronger

This commit is contained in:
Dominik Moritz Roth 2022-04-15 23:53:34 +02:00
parent 91e567d2b3
commit d8504cfbdf
2 changed files with 7 additions and 7 deletions

Binary file not shown.

View File

@ -465,9 +465,10 @@ class NeuralRuntime(Runtime):
class Trainer(Runtime): class Trainer(Runtime):
def __init__(self, initState): def __init__(self, initState):
self.universe = Universe() super().__init__(initState)
#self.universe = QueueingUniverse() #self.universe = Universe()
self.rootNode = Node(initState, universe = self.universe) self.universe = self.head.universe
self.rootNode = self.head
self.terminal = None self.terminal = None
def buildDatasetFromModel(self, model, depth=4, refining=True, exacity=5): def buildDatasetFromModel(self, model, depth=4, refining=True, exacity=5):
@ -478,8 +479,8 @@ class Trainer(Runtime):
self.fanOut(term, depth=depth+2) self.fanOut(term, depth=depth+2)
self.fanOut(term.parent, depth=depth+2) self.fanOut(term.parent, depth=depth+2)
self.fanOut(term.parent.parent, depth=depth+2) self.fanOut(term.parent.parent, depth=depth+2)
#print('[*] Refining Timeline (exploring uncertain regions)') print('[*] Refining Timeline (exploring uncertain regions)')
#self.timelineExpandUncertain(term, 20) self.timelineExpandUncertain(term, 10)
return term return term
def fanOut(self, head, depth=4): def fanOut(self, head, depth=4):
@ -521,9 +522,8 @@ class Trainer(Runtime):
head = head.parent head = head.parent
def timelineExpandUncertain(self, term, secs): def timelineExpandUncertain(self, term, secs):
return
self.rootNode.universe.clearPQ() self.rootNode.universe.clearPQ()
self.rootNode.universe.activateEdge(rootNode) self.rootNode.universe.activateEdge(self.rootNode)
self.spawnWorker() self.spawnWorker()
time.sleep(secs) time.sleep(secs)
self.rootNode.universe.clearPQ() self.rootNode.universe.clearPQ()