Thanks to visit codestin.com
Credit goes to github.com

Skip to content

aqtech-ca/mcts4py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MCTS library in Python

Requirements

  • Python 3.9+

Samples

To run samples:

  • run pip install -e . in the root directory
  • run python main.py in the sample directory

To install from PyPI,

python3 -m pip install --index-url https://test.pypi.org/simple/ mcts4py

Running the MENTSsolver vs UCTsolver Comparison in Gym Environments

Install Requirements:

python3 -m pip install .

python3 -m pip install ".[gym_samples]"

Set the Python Path:

export PYTHONPATH=/path/to/mcts4py:$PYTHONPATH

Run the Comparisons:

  • CartPole: python3 samples/gym/cartPole/CartPole.py
  • Frozen Lake: python3 samples/gym/frozenLake/FrozenLake.py

The exploration_constant can be adjusted directly in the evaluate_solver method located in the respective scripts.

About

mctreesearch4j implementation on Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages