mcts4j
mcts4j copied to clipboard
How to set the maximum number of path explored ?
I study a little the source code but i was not able to find how to set the number of iterations in the tree search. I expected the method getBestTransition() to take in input this quantity (or something related, for example the maximum number of seconds allowed for the computation).
I planned it to be time based, see https://github.com/avianey/mcts4j/blob/master/mcts4j/src/main/java/fr/avianey/mcts4j/MonteCarloTreeSearch.java TODO line 59 you can do it by extracting the stop variable to a class field so that you can stop the exploration at any time...
Have to see if I don't have pending commit on my laptop
regards
Perfect! indeed an easy way to stop the computation.
Thanks a lot for the quick replay.
Enrico
2016-03-31 12:40 GMT+02:00 Antoine Vianey [email protected]:
I planned it to be time based, see https://github.com/avianey/mcts4j/blob/master/mcts4j/src/main/java/fr/avianey/mcts4j/MonteCarloTreeSearch.java TODO line 59 you can do it by extracting the stop variable to a class field so that you can stop the exploration at any time...
Have to see if I don't have pending commit on my laptop
regards
— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/avianey/mcts4j/issues/1#issuecomment-203874286