浏览代码

updated the comments

/develop-generalizationTraining-TrainerController
Vincent Gao 7 年前
当前提交
9066f399
共有 1 个文件被更改,包括 21 次插入7 次删除
  1. 28
      python/Basics.ipynb

28
python/Basics.ipynb


{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"env_name = \"3DBall\" # Name of the Unity environment binary to launch\n",

{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import matplotlib.pyplot as plt\n",

{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"env = UnityEnvironment(file_name=env_name)\n",

{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"# Reset the environment\n",

"metadata": {},
"source": [
"### 5. Take random actions in the environment\n",
"Once we restart an environment, we can step the environment forward and provide actions to all of the agents within the environment. Here we simply choose random actions based on the `action_space_type` of the default brain."
"Once we restart an environment, we can step the environment forward and provide actions to all of the agents within the environment. Here we simply choose random actions based on the `action_space_type` of the default brain. \n",
"\n",
"You are going to see 10 messages that tells you how much rewards you are going to see in the next 10 episodes, then the Unity environment is going to be stuck, waiting for further signals telling it what to do next. So not seeing any moving animation is expected when running this notebook. "
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"for episode in range(10):\n",

{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"env.close()"

正在加载...
取消
保存