MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / tic_tac_toe.py

File tic_tac_toe.py

rl/tic_tac_toe.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1# https://deeplearningcourses.com/c/artificial-intelligence-reinforcement-learning-in-python
2# https://www.udemy.com/artificial-intelligence-reinforcement-learning-in-python
3# Simple reinforcement learning algorithm for learning tic-tac-toe
4# Use the update rule: V(s) = V(s) + alpha*(V(s') - V(s))

Callers

nothing calls this directly

Calls 10

EnvironmentClass · 0.85
initialV_xFunction · 0.85
initialV_oFunction · 0.85
HumanClass · 0.85
setVMethod · 0.80
set_verboseMethod · 0.80
AgentClass · 0.70
play_gameFunction · 0.70
set_symbolMethod · 0.45

Tested by

no test coverage detected