From 057bfef49ef499f1472088aa53683de6dafe51f1 Mon Sep 17 00:00:00 2001 From: Jacob Abrams Date: Mon, 4 Nov 2024 02:06:04 -0800 Subject: [PATCH] Fix Train Agent doc, need env param (#1239) --- docs/introduction/train_agent.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/introduction/train_agent.md b/docs/introduction/train_agent.md index 4cbc9173e..7117e4d9a 100644 --- a/docs/introduction/train_agent.md +++ b/docs/introduction/train_agent.md @@ -116,6 +116,7 @@ epsilon_decay = start_epsilon / (n_episodes / 2) # reduce the exploration over final_epsilon = 0.1 agent = BlackjackAgent( + env, learning_rate=learning_rate, initial_epsilon=start_epsilon, epsilon_decay=epsilon_decay,