예제 #1
0
 def __init__(self, environment=None, groundTruthFile=None):
     Task.__init__(self, environment)
     if groundTruthFile is not None:
         self.groundTruth = cu.loadBoxIndexFile(groundTruthFile)
     self.image = ''
     self.epochRecall = []
     self.epochMaxIoU = []
     self.epochLandmarks = []
예제 #2
0
 def __init__(self, environment=None, groundTruthFile=None):
   Task.__init__(self, environment)
   if groundTruthFile is not None:
     self.groundTruth = cu.loadBoxIndexFile(groundTruthFile)
   self.image = ''
   self.epochRecall = []
   self.epochMaxIoU = []
   self.epochLandmarks = []
예제 #3
0
 def __init__(self, env=ChemotaxisEnv()):
     """
     :key env: (optional) an instance of a ChemotaxisEnv (or a subclass thereof)
     """
     Task.__init__(self, env)
     
     self.actor_limits = [(-10,10), (-10,10)] # limit motor neurons
     self.sensor_limits = [(0,1), (0,1)] # no limit on sensor neurons
예제 #4
0
 def __init__(self, env):
     Task.__init__(self, env)
     self.last_reward = 0
예제 #5
0
 def __init__(self, environment, groundTruthFile):
     Task.__init__(self, environment)
     self.groundTruth = cu.loadBoxIndexFile(groundTruthFile)
     self.image = ''
     self.prevAction = 0
     self.prevPos = (0, 0, 0)
예제 #6
0
 def __init__(self, env, living, start_point = (0,0), max_samples = 5000):
     self.start_point = start_point
     self.living = living
     Task.__init__(self, env)
     self.max_samples = max_samples
 def __init__(self, environment, groundTruthFile):
   Task.__init__(self, environment)
   self.groundTruth = cu.loadBoxIndexFile(groundTruthFile)
 def __init__(self, environment, groundTruthFile):
   Task.__init__(self, environment)
   self.groundTruth = cu.loadBoxIndexFile(groundTruthFile)
   self.image = ''
   self.prevAction = 0
   self.prevPos = (0,0,0)
예제 #9
0
 def __init__(self, environment, groundTruthFile):
     Task.__init__(self, environment)
     self.groundTruth = cu.loadBoxIndexFile(groundTruthFile)