def __init__(self, agent_class):
     StatsMonitor.__init__(self, agent_class)
     self._maxes = []
     self._mins = []
     self._counts = []
     self._steps = 0
     self.ofile = open("count.txt", "a")
 def __init__(self, agent_class):
     StatsMonitor.__init__(self, agent_class)
     self._sum = []
     self._count = []
     self._previousBestFitness = []
     self._actualStepsNr = []
     self._maxNrOfSteps = []
 def __init__(self, agent_class,filename='stats.txt'):
     StatsMonitor.__init__(self, agent_class)
     import os
     self.filename = filename
     if os.path.isfile(self.filename):
         os.remove(self.filename)
     self._meetingsSum = 0.0
     self._fightsSum = 0.0
     self._reproduceSum = 0.0
     self._maxAge = 0
     self._minAge = 1000
     self._ageSum = 0.0
     self._successMeetingsSum = 0.0
 def __init__(self, agent_class):
     StatsMonitor.__init__(self, agent_class)
     self._wantReproduceCounts = []
     self._steps = 0
Esempio n. 5
0
 def __init__(self, agent_class):
     StatsMonitor.__init__(self, agent_class)
Esempio n. 6
0
 def __init__(self, agent_class,filename='stats.txt'):
     StatsMonitor.__init__(self, agent_class)
     self._it = 0
     self._filename = filename
 def __init__(self, agent_class):
     StatsMonitor.__init__(self, agent_class)
     self._bestResults = []
     self._bestGenotypes = []
 def __init__(self, agent_class):
     StatsMonitor.__init__(self, agent_class)
     self._max = []
     self._sum = []
     self._count = []
     self._prevCoG = []
 def __init__(self, agent_class):
     StatsMonitor.__init__(self, agent_class)
     self._min = []
     self._max = []
Esempio n. 10
0
 def __init__(self, agent_class):
     StatsMonitor.__init__(self, agent_class)
     self._num = 0
     self._bestResults = []
     self.ofile = open('fitness.txt', 'a')
 def __init__(self, agent_class):
     StatsMonitor.__init__(self, agent_class)
     self._reproduceCounts = []
     self._dieCounts = []
     self._steps = 0
     self.ofile = open('reproduceCount.txt', 'a')
 def __init__(self, agent_class):
     StatsMonitor.__init__(self, agent_class)
     self._agentsteps = []
Esempio n. 13
0
 def __init__(self, agent_class):
     StatsMonitor.__init__(self, agent_class)
     self._maxes = []
     self._mins = []
     self._counts = []
     self._steps = 0