miroesli / psscscs

Reinforcement Learning Battlesnake
MIT License
2 stars 1 forks source link

Change The Compete and Train_Alpha Functions in AlphaZero Algorithm to Be An Instance Method #13

Closed AhmedNSidd closed 4 years ago

AhmedNSidd commented 4 years ago

In app/algs/neuralnet.py, the compete() and train_alpha() methods should be changed so that they are instance methods. This includes changing the first function parameter to be "self". Simple hotfix required. Additionally, this change needs to be refactored throughout the same file, so that when we're calling the compete and train_alpha functions, we're calling it using self.function_name(params).