#2453 - Updating with some explanation to improve the readability of the notebook

This commit is contained in:
Charlie Crane
2024-04-18 13:50:47 +01:00
parent 49be3b3639
commit bb88d43b90

View File

@@ -1,5 +1,16 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Training an SB3 Agent\n",
"\n",
"This notebook will demonstrate how to use primaite to create and train a PPO agent.\n",
"\n",
"#### First, import `PrimaiteGymEnv` and read our config file"
]
},
{
"cell_type": "code",
"execution_count": null,
@@ -69,7 +80,8 @@
"metadata": {},
"outputs": [],
"source": [
"model.learn(total_timesteps=NO_STEPS)\n"
"model.learn(total_timesteps=NO_STEPS)\n",
"model.save(\"PrimAITE-PPO-example-agent\")"
]
},
{
@@ -78,7 +90,7 @@
"metadata": {},
"outputs": [],
"source": [
"model.save(\"PrimAITE-v3.0.0b7-PPO\")"
"model.save(\"PrimAITE-PPO-example-agent\")"
]
},
{
@@ -88,7 +100,7 @@
"outputs": [],
"source": [
"eval_model = PPO(\"MlpPolicy\", gym)\n",
"eval_model = PPO.load(\"PrimAITE-v3.0.0b7-PPO\", gym)"
"eval_model = PPO.load(\"PrimAITE-PPO-example-agent\", gym)"
]
},
{