mcts4j icon indicating copy to clipboard operation
mcts4j copied to clipboard

How to set the maximum number of path explored ?

Open triplopinco opened this issue 8 years ago • 2 comments

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).

triplopinco avatar Mar 31 '16 09:03 triplopinco

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

avianey avatar Mar 31 '16 10:03 avianey

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

triplopinco avatar Mar 31 '16 11:03 triplopinco