JoshVarty / AlphaZeroSimple

The absolute most basic example of AlphaZero and Monte Carlo Tree Search I could come up with
MIT License
183 stars 33 forks source link

Refactor Trainer and remove self.mcts #5

Open JoshVarty opened 3 years ago

JoshVarty commented 3 years ago

We don't need to make the Monte Carlo Search Tree object live inside of the trainer. It can exist as a local inside execute_episode().

ghost commented 3 years ago

In fact, I think the Monte Carlo Search Tree object does not necessarily exist in the execute_episode function, as it is initialised when building the trainer object.