本文整理汇总了Python中pybrain.utilities.abstractMethod函数的典型用法代码示例。如果您正苦于以下问题:Python abstractMethod函数的具体用法?Python abstractMethod怎么用?Python abstractMethod使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了abstractMethod函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: performAction
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()
示例2: performAction
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()
示例3: getSensors
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()
示例4: _getCombinedDistribution
def _getCombinedDistribution(self, distributionMatrix, numClassifiers):
abstractMethod()
示例5: combine
def combine(self, classifiers, input):
"""Receives list of trained classifers """
abstractMethod()
示例6: color
def color(self): #Tuple of r, g, b
abstractMethod()
示例7: _learnStep
def _learnStep(self):
""" The core method to be implemented by all subclasses. """
abstractMethod()
示例8: getAction
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()
示例9: updateState
def updateState(self, env, dt): #dt in seconds
abstractMethod()
示例10: f
def f(self, x):
""" The function itself, to be defined by subclasses """
abstractMethod()
示例11: distributionLength
def distributionLength(self):
abstractMethod()
示例12: updater
def updater(self, pos, neg, poshb, neghb, posvb, negvb):
abstractMethod()
示例13: _forwardImplementation
def _forwardImplementation(self, inbuf, outbuf):
"""Actual forward transformation function. To be overwritten in
subclasses."""
abstractMethod()
示例14: sampler
def sampler(self, probabilities):
abstractMethod()
示例15: removeFromEnv
def removeFromEnv(self, env): #Called upon removing
abstractMethod()