Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Persist trainExamples during sessions (#35)
* Clear resources during long training * Coach.py: recreate NNet after each iteration to clear resources (especially in Keras+TF environment) * Coach.py: free mcts variables after they are not used * NeuralNet.py: abstract method for recreating models * Keras implementation of Othello: reference method implementations for recreating models * Improvemetns * Pythonic indentation in TicToePlayers * Nice printing of the board * sync from upstream * Persist trainExamples during sessions * Coach.py holds history of trainExamples from last N iterations as it stated in AlphaGo paper * Coach.py is able to save/load examples to/from file * remove recreate() * remove destroy() * remove recreate() * empty line * empty line * Unused arguments
- Loading branch information
1 parent
2a37807
commit 1fb1255
Showing
7 changed files
with
110 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
.DS_Store | ||
|
||
/temp/ | ||
/.project | ||
/.pydevproject |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters