- Python 3.9+
To run samples:
- run
pip install -e .in the root directory - run
python main.pyin the sample directory
To install from PyPI,
python3 -m pip install --index-url https://test.pypi.org/simple/ mcts4py
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.