当前位置: 首页>>代码示例>>Python>>正文


Python Simulator.options['SARSA']['burnInTime']方法代码示例

本文整理汇总了Python中simulator.Simulator.options['SARSA']['burnInTime']方法的典型用法代码示例。如果您正苦于以下问题:Python Simulator.options['SARSA']['burnInTime']方法的具体用法?Python Simulator.options['SARSA']['burnInTime']怎么用?Python Simulator.options['SARSA']['burnInTime']使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在simulator.Simulator的用法示例。


在下文中一共展示了Simulator.options['SARSA']['burnInTime']方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1:

# 需要导入模块: from simulator import Simulator [as 别名]
# 或者: from simulator.Simulator import options['SARSA']['burnInTime'] [as 别名]
sim.options['Car']['velocity'] = 16

sim.options['World']['obstaclesInnerFraction'] = 0.85

sim.options['dt'] = 0.05



# setup the training time
sim.supervisedTrainingTime = 0
sim.learningRandomTime = 5000
sim.learningEvalTime = 1000
sim.defaultControllerTime = 1000


sim.options['SARSA']['burnInTime'] = sim.learningRandomTime/2.0



# World Setup
sim.randomSeed = 40
sim.randomizeControl       = True
sim.percentObsDensity      = 7.5
sim.nonRandomWorld         = True
sim.circleRadius           = 1.75
sim.worldScale             = 1




# # # Testing
开发者ID:andybarry,项目名称:Machine-Learning-6.867-homework,代码行数:33,代码来源:runSARSA4.py

示例2:

# 需要导入模块: from simulator import Simulator [as 别名]
# 或者: from simulator.Simulator import options['SARSA']['burnInTime'] [as 别名]
# # big dense
# sim.randomSeed = 12
# sim.randomizeControl       = True
# sim.percentObsDensity      = 7
# sim.nonRandomWorld         = True
# sim.circleRadius           = 1.5
# sim.worldScale             = 1

sim.supervisedTrainingTime = 3000
sim.learningRandomTime = 4000
sim.learningEvalTime = 500
sim.defaultControllerTime = 500

sim.options['SARSA']['epsilonGreedy'] = 0.4
sim.options['SARSA']['burnInTime'] = sim.supervisedTrainingTime/1.5
sim.options['Reward']['actionCost'] = 0.4
sim.options['Reward']['raycastCost'] = 40.0

# sim.options['Reward']['collisionPenalty'] = 200


sim.randomSeed = 8
sim.randomizeControl       = True
sim.percentObsDensity      = 5
sim.nonRandomWorld         = True
sim.circleRadius           = 2.5
sim.worldScale             = 1
sim.options['World']['obstaclesInnerFraction'] = 0.8

开发者ID:andybarry,项目名称:Machine-Learning-6.867-homework,代码行数:30,代码来源:runSARSA2.py


注:本文中的simulator.Simulator.options['SARSA']['burnInTime']方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。