From eedc21d3f7b8c5222546d43da3e6c266ea57ac50 Mon Sep 17 00:00:00 2001 From: Ryan Russell Date: Fri, 30 Sep 2022 17:01:25 -0500 Subject: [PATCH] docs: unit1 readability fixups Signed-off-by: Ryan Russell --- unit1/unit1.ipynb | 2 +- unit1/unit1_bonus/Wandb Logging.ipynb | 4 ++-- unit1/unit1_optuna_guide.ipynb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/unit1/unit1.ipynb b/unit1/unit1.ipynb index 35789cf..0b65b8e 100644 --- a/unit1/unit1.ipynb +++ b/unit1/unit1.ipynb @@ -345,7 +345,7 @@ "3️⃣ Get an action using our model (in our example we take a random action)\n", "\n", "4️⃣ Using `env.step(action)`, we perform this action in the environment and get\n", - "- `obsevation`: The new state (st+1)\n", + "- `observation`: The new state (st+1)\n", "- `reward`: The reward we get after executing the action\n", "- `done`: Indicates if the episode terminated\n", "- `info`: A dictionary that provides additional information (depends on the environment).\n", diff --git a/unit1/unit1_bonus/Wandb Logging.ipynb b/unit1/unit1_bonus/Wandb Logging.ipynb index cc89b9e..1d27962 100644 --- a/unit1/unit1_bonus/Wandb Logging.ipynb +++ b/unit1/unit1_bonus/Wandb Logging.ipynb @@ -131,7 +131,7 @@ } ], "source": [ - "# Initilaize wandb\n", + "# Initialize wandb\n", "# https://docs.wandb.ai/guides/integrations/other/stable-baselines-3\n", "\n", "config = {\n", @@ -182,7 +182,7 @@ ], "source": [ "env = make_vec_env('LunarLander-v2', n_envs=16)\n", - "# Use the folling line with caution. The video recorder will try to render the agent on the screen, so that ffmpeg can caputre it. Here, we have 16 envs set. Trying to render 16 envs on screen will\n", + "# Use the following line with caution. The video recorder will try to render the agent on the screen, so that ffmpeg can capture it. Here, we have 16 envs set. Trying to render 16 envs on screen will\n", "# be pretty resource intensive. \n", "# env = VecVideoRecorder(env, f\"videos/{run.id}\", record_video_trigger=lambda x: x % 2000 == 0, video_length=200) # Set the video recorder, to record our agent during training\n", "\n", diff --git a/unit1/unit1_optuna_guide.ipynb b/unit1/unit1_optuna_guide.ipynb index 209e9d6..fcdb4ae 100644 --- a/unit1/unit1_optuna_guide.ipynb +++ b/unit1/unit1_optuna_guide.ipynb @@ -287,7 +287,7 @@ "\n", "**Note:** If you have more time available, then you can tune other hyperparameters too. Moreover, you can explore wider ranges for each hyperparameter.\n", "\n", - "The `trial.suggest_int()` and `trial.suggest_uniform()` methods are used by Optuna to suggest hyperparamter values in the ranges specified. The suggested combination of values are then used to train a model and return the score." + "The `trial.suggest_int()` and `trial.suggest_uniform()` methods are used by Optuna to suggest hyperparameter values in the ranges specified. The suggested combination of values are then used to train a model and return the score." ], "metadata": { "id": "dORGHcVYdSKp"