本文整理汇总了Python中pybrain.rl.environments.EpisodicTask.reset方法的典型用法代码示例。如果您正苦于以下问题:Python EpisodicTask.reset方法的具体用法?Python EpisodicTask.reset怎么用?Python EpisodicTask.reset使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pybrain.rl.environments.EpisodicTask
的用法示例。
在下文中一共展示了EpisodicTask.reset方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: reset
# 需要导入模块: from pybrain.rl.environments import EpisodicTask [as 别名]
# 或者: from pybrain.rl.environments.EpisodicTask import reset [as 别名]
def reset(self):
self.reward[0] = 0.0
self.rawReward = 0.0
self.env.reset()
self.action = [self.env.dists[0]] * self.outDim
self.epiStep = 0
EpisodicTask.reset(self)
示例2: reset
# 需要导入模块: from pybrain.rl.environments import EpisodicTask [as 别名]
# 或者: from pybrain.rl.environments.EpisodicTask import reset [as 别名]
def reset(self):
EpisodicTask.reset(self)
self.day = weather.daily(date="random")
self.t = 0
示例3: reset
# 需要导入模块: from pybrain.rl.environments import EpisodicTask [as 别名]
# 或者: from pybrain.rl.environments.EpisodicTask import reset [as 别名]
def reset(self):
self.steps = 0
EpisodicTask.reset(self)
示例4: reset
# 需要导入模块: from pybrain.rl.environments import EpisodicTask [as 别名]
# 或者: from pybrain.rl.environments.EpisodicTask import reset [as 别名]
def reset(self):
EpisodicTask.reset(self)
self.t = 0
示例5: reset
# 需要导入模块: from pybrain.rl.environments import EpisodicTask [as 别名]
# 或者: from pybrain.rl.environments.EpisodicTask import reset [as 别名]
def reset(self):
EpisodicTask.reset(self)
self.score_before = 0
示例6: reset
# 需要导入模块: from pybrain.rl.environments import EpisodicTask [as 别名]
# 或者: from pybrain.rl.environments.EpisodicTask import reset [as 别名]
def reset(self):
EpisodicTask.reset(self)
self.count = 0
self.oldDist = 0.
self.atGoal = False
self.reward = 0
示例7: reset
# 需要导入模块: from pybrain.rl.environments import EpisodicTask [as 别名]
# 或者: from pybrain.rl.environments.EpisodicTask import reset [as 别名]
def reset(self):
EpisodicTask.reset(self)
self.t = 0
self.lastFitness = 0.0
self.bestFitness = 0.0
self.appendLog() # write first line!
示例8: reset
# 需要导入模块: from pybrain.rl.environments import EpisodicTask [as 别名]
# 或者: from pybrain.rl.environments.EpisodicTask import reset [as 别名]
def reset(self):
self.env.reset()
EpisodicTask.reset(self)
self.t = 0
示例9: reset
# 需要导入模块: from pybrain.rl.environments import EpisodicTask [as 别名]
# 或者: from pybrain.rl.environments.EpisodicTask import reset [as 别名]
def reset(self):
EpisodicTask.reset(self)
self.total_reward = 0.0
示例10: reset
# 需要导入模块: from pybrain.rl.environments import EpisodicTask [as 别名]
# 或者: from pybrain.rl.environments.EpisodicTask import reset [as 别名]
def reset(self):
EpisodicTask.reset(self)
self.t = 0
self.rewardscale = 100.0 / self.env.distance_to_goal
print self.total_reward
self.total_reward = 0.0