コード例 #1
0
 def getSensors(self):
     """ the currently visible state of the world (the observation may be 
         stochastic - repeated calls returning different values)
         
         :rtype: by default, this is assumed to be a numpy array of doubles
         :note: This function is abstract and has to be implemented.
     """
     abstractMethod()
コード例 #2
0
 def performAction(self, action):
     """ perform an action on the world that changes it's internal state (maybe stochastically)
     
         :key action: an action that should be executed in the Environment, by an agent. 
         :type action: tuple: (agentID, action value)
         :note: This function is abstract and has to be implemented.
     """
     abstractMethod()
コード例 #3
0
 def performAction(self, action):
     """ perform an action on the world that changes it's internal state (maybe 
         stochastically).
         :key action: an action that should be executed in the Environment. 
         :type action: by default, this is assumed to be a numpy array of doubles
         :note: This function is abstract and has to be implemented.
     """
     abstractMethod()
コード例 #4
0
ファイル: optimizer.py プロジェクト: nnarziev/MyWeek_Server
 def _learnStep(self):
     """ The core method to be implemented by all subclasses. """
     abstractMethod()        
コード例 #5
0
 def getMaxAction(self, state):
     abstractMethod()
コード例 #6
0
ファイル: episodic.py プロジェクト: nnarziev/MyWeek_Server
 def isFinished(self):
     """ Is the current episode over? """
     abstractMethod()
コード例 #7
0
 def updater(self, pos, neg, poshb, neghb, posvb, negvb):
     abstractMethod()
コード例 #8
0
ファイル: module.py プロジェクト: nnarziev/MyWeek_Server
 def _forwardImplementation(self, inbuf, outbuf):
     """Actual forward transformation function. To be overwritten in 
     subclasses."""
     abstractMethod()
コード例 #9
0
 def learn(self):
     """ The main method, that invokes a learning step. """
     abstractMethod()
コード例 #10
0
 def f(self, x):
     """ The function itself, to be defined by subclasses """
     abstractMethod()
コード例 #11
0
 def _render(self): 
     """ Here, the render methods are called. This function has to be implemented by subclasses. """
     abstractMethod() 
コード例 #12
0
 def updateData(self):
     """ overwrite this class to update whatever data the renderer needs to display the current
         state of the world. """
     abstractMethod()
コード例 #13
0
 def mutate(self, **args):
     """ Vary some properties of the underlying module, so that it's behavior 
     changes, (but not too abruptly). """
     abstractMethod()
コード例 #14
0
 def randomize(self):
     """ Sets all variable parameters to random values. """
     abstractMethod()
コード例 #15
0
 def getActionValues(self, state):
     abstractMethod()
コード例 #16
0
ファイル: topology.py プロジェクト: nnarziev/MyWeek_Server
 def topologyMutate(self):
     abstractMethod()
コード例 #17
0
ファイル: trainer.py プロジェクト: nnarziev/MyWeek_Server
 def train(self):
     """Train on the current dataset, for a single epoch."""
     abstractMethod()
コード例 #18
0
ファイル: connection.py プロジェクト: nnarziev/MyWeek_Server
 def _forwardImplementation(self, inbuf, outbuf):
     abstractMethod()
コード例 #19
0
 def doMove(self, player, action):
     """ the core method to be implemented bu all TwoPlayerGames: 
     what happens when a player performs an action. """
     abstractMethod()
コード例 #20
0
ファイル: connection.py プロジェクト: nnarziev/MyWeek_Server
 def _backwardImplementation(self, outerr, inerr, inbuf):
     abstractMethod()
コード例 #21
0
 def sampler(self, probabilities):
     abstractMethod()
コード例 #22
0
ファイル: evolution.py プロジェクト: nnarziev/MyWeek_Server
 def initPopulation(self):
     """ initialize the population """
     abstractMethod()
コード例 #23
0
ファイル: agent.py プロジェクト: nnarziev/MyWeek_Server
 def getAction(self):
     """ Return a chosen action.
         :rtype: by default, this is assumed to ba a numpy array of doubles.
         :note: This method is abstract and needs to be implemented.
     """
     abstractMethod()
コード例 #24
0
ファイル: evolution.py プロジェクト: nnarziev/MyWeek_Server
 def produceOffspring(self):
     """ generate the new generation of offspring, given the current population, and their fitnesses """
     abstractMethod()
コード例 #25
0
 def getReward(self):
     """ Compute and return the current reward (i.e. corresponding to the last action performed) """
     return abstractMethod()
コード例 #26
0
 def calculateGradient(self):
     abstractMethod()