Abschnitt 1. Kapitel 4
single
Challenge: Modify Exploration Rate
Swipe um das Menü anzuzeigen
Aufgabe
Wischen, um mit dem Codieren zu beginnen
Modify the Q-learning implementation to use the exploration_rate parameter for controlling action selection during training. This challenge builds on your previous work with Q-learning by introducing the concept of exploration versus exploitation.
- Use the
exploration_rateargument to determine whether to select a random action or the best-known action at each step. - When a random value is less than
exploration_rate, select a random action. - Otherwise, select the action with the highest value from the Q-table for the current state.
- Ensure the rest of the Q-learning algorithm remains unchanged.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 4
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen