コード例 #1
0
ファイル: environment.py プロジェクト: HKou/pybrain
 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) 
         @param 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
ファイル: twoplayergame.py プロジェクト: HKou/pybrain
 def performAction(self, action):
     """ perform an action on the world that changes it's internal state (maybe stochastically) 
         @param 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()
コード例 #4
0
ファイル: environment.py プロジェクト: HKou/pybrain
 def performAction(self, action):
     """ perform an action on the world that changes it's internal state (maybe stochastically) 
         @param 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()
コード例 #5
0
ファイル: environment.py プロジェクト: chenzhikuo1/OCR-Python
 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()
コード例 #6
0
ファイル: environment.py プロジェクト: chenzhikuo1/OCR-Python
 def performAction(self, action):
     """ perform an action on the world that changes it's internal state (maybe stochastically) 
         @param 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()
コード例 #7
0
ファイル: trainer.py プロジェクト: G3ra1d0/Digit-Recognition
 def train(self):
     """Train on the current dataset, for a single epoch."""
     abstractMethod()
コード例 #8
0
 def _backwardImplementation(self, outerr, inerr, inbuf):
     abstractMethod()
コード例 #9
0
ファイル: classifier.py プロジェクト: mushketyk/pybrain
 def distributionLength(self):
     abstractMethod()
コード例 #10
0
ファイル: interface.py プロジェクト: aalto-speech/rl-klm
 def getActionValues(self, state):
     abstractMethod()
コード例 #11
0
 def calculateGradient(self):
     abstractMethod()
コード例 #12
0
 def updater(self, pos, neg, poshb, neghb, posvb, negvb):
     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 removeFromEnv(self, env):                   #Called upon removing
     abstractMethod()    
コード例 #15
0
ファイル: rbm.py プロジェクト: DanSGraham/code
 def sampler(self, probabilities):
     abstractMethod()
コード例 #16
0
 def updateState(self, env, dt):                 #dt in seconds
     abstractMethod()        
コード例 #17
0
 def draw(self, env):
     abstractMethod()
コード例 #18
0
 def position(self):
     abstractMethod()
コード例 #19
0
 def color(self):                                #Tuple of r, g, b
     abstractMethod()
コード例 #20
0
 def _initPhysics(self, *args):                           #Responsibility is on the superclasses to create a shape and body
     abstractMethod()        
コード例 #21
0
 def __call__(self, *args, **kwargs):
     """ @rtype: float """
     abstractMethod()
コード例 #22
0
ファイル: rbm.py プロジェクト: DanSGraham/code
 def updater(self, pos, neg, poshb, neghb, posvb, negvb):
     abstractMethod()
 def _updateWeights(self, state, action, reward, next_state):
     '''
     Expected to update Q-value approximator. 
     '''
     abstractMethod()
コード例 #24
0
ファイル: module.py プロジェクト: Angeliqe/pybrain
 def _forwardImplementation(self, inbuf, outbuf):
     """Actual forward transformation function. To be overwritten in
     subclasses."""
     abstractMethod()
コード例 #25
0
ファイル: policygradient.py プロジェクト: HKou/pybrain
 def calculateGradient(self):
     abstractMethod()
コード例 #26
0
 def f(self, x):
     """ The function itself, to be defined by subclasses """
     abstractMethod()
コード例 #27
0
ファイル: optimizer.py プロジェクト: PatrickHunter/pybrain
 def _learnStep(self):
     """ The core method to be implemented by all subclasses. """
     abstractMethod()        
コード例 #28
0
ファイル: voting.py プロジェクト: mushketyk/pybrain
 def combine(self, classifiers, input):
     """Receives list of trained classifers """
     abstractMethod()
コード例 #29
0
 def produceOffspring(self):
     """ generate the new generation of offspring, given the current population, and their fitnesses """
     abstractMethod()
コード例 #30
0
ファイル: classifier.py プロジェクト: mushketyk/pybrain
 def _build(self, dataset):
     abstractMethod()
コード例 #31
0
 def learn(self):
     """ The main method, that invokes a learning step. """
     abstractMethod()
コード例 #32
0
 def _forwardImplementation(self, inbuf, outbuf):
     abstractMethod()
コード例 #33
0
ファイル: voting.py プロジェクト: mushketyk/pybrain
 def _getCombinedDistribution(self, distributionMatrix, numClassifiers):
     abstractMethod()
コード例 #34
0
ファイル: evolution.py プロジェクト: Angeliqe/pybrain
 def initPopulation(self):
     """ initialize the population """
     abstractMethod()
コード例 #35
0
ファイル: classifier.py プロジェクト: mushketyk/pybrain
 def getDistribution(self, input):
     """Returns NumPy array of posterior distributions for each class."""
     abstractMethod()
コード例 #36
0
 def randomize(self):
     """ Sets all variable parameters to random values. """
     abstractMethod()
コード例 #37
0
 def isFinished(self):
     """ Is the current episode over? """
     abstractMethod()
コード例 #38
0
 def f(self, x):
     """ The function itself, to be defined by subclasses """
     abstractMethod()
コード例 #39
0
ファイル: evolution.py プロジェクト: Angeliqe/pybrain
 def produceOffspring(self):
     """ generate the new generation of offspring, given the current population, and their fitnesses """
     abstractMethod()
コード例 #40
0
ファイル: twoplayergame.py プロジェクト: HKou/pybrain
 def doMove(self, player, action):
     """ the core method to be implemented bu all TwoPlayerGames: 
     what happens when a player performs an action. """
     abstractMethod()
コード例 #41
0
 def _forwardImplementation(self, inbuf, outbuf):
     """Actual forward transformation function. To be overwritten in 
     subclasses."""
     abstractMethod()
コード例 #42
0
ファイル: optimizer.py プロジェクト: jeepq/pybrain
 def _learnStep(self):
     """ The core method to be implemented by all subclasses. """
     abstractMethod()        
コード例 #43
0
ファイル: evaluator.py プロジェクト: HKou/pybrain
 def __call__(self, *args, **kwargs):
     """ @rtype: float """
     abstractMethod()
 def _qValues(self, state):
     """ Return vector of probability of policy for all actions, 
     given the state(-features). """
     abstractMethod()
コード例 #45
0
 def isFinished(self):
     """ Is the current episode over? """
     abstractMethod()
コード例 #46
0
ファイル: topology.py プロジェクト: G3ra1d0/Digit-Recognition
 def topologyMutate(self):
     abstractMethod()
コード例 #47
0
 def sampler(self, probabilities):
     abstractMethod()
コード例 #48
0
ファイル: rllearner.py プロジェクト: RaVbaker/pybrain
 def learn(self):
     """ learn on the current dataset, for a single epoch
         @note: has to be implemented by all subclasses. """
     abstractMethod()
コード例 #49
0
ファイル: agent.py プロジェクト: rbalda/neural_ocr
 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()
コード例 #50
0
 def doMove(self, player, action):
     """ the core method to be implemented bu all TwoPlayerGames: 
     what happens when a player performs an action. """
     abstractMethod()
コード例 #51
0
 def randomize(self):
     """ randomly set all variable parameters """
     abstractMethod()
コード例 #52
0
 def updateData(self):
     """ overwrite this class to update whatever data the renderer needs to display the current
         state of the world. """
     abstractMethod()
コード例 #53
0
ファイル: agent.py プロジェクト: chenzhikuo1/OCR-Python
 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()
コード例 #54
0
 def _render(self):
     """ Here, the render methods are called. This function has to be implemented by subclasses. """
     abstractMethod()
コード例 #55
0
ファイル: interface.py プロジェクト: aalto-speech/rl-klm
 def getMaxAction(self, state):
     abstractMethod()
コード例 #56
0
ファイル: learner.py プロジェクト: Bowen-C/pybrain
 def learn(self):
     """ The main method, that invokes a learning step. """
     abstractMethod()
コード例 #57
0
ファイル: task.py プロジェクト: G3ra1d0/Digit-Recognition
 def getReward(self):
     """ Compute and return the current reward (i.e. corresponding to the last action performed) """
     return abstractMethod()
コード例 #58
0
 def initPopulation(self):
     """ initialize the population """
     abstractMethod()