diff --git a/README.md b/README.md index eeae972..1d6f6b3 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,11 @@ Currently, most needed is: - Documentation of backgammon metrics / neural net inputs: https://github.com/carsten-wenderdel/wildbg/issues/4 - Implementation of a bearoff database: https://github.com/carsten-wenderdel/wildbg/issues/1 +### Installation of python environment + +Make an editable install by targeting the training directory: +``` pip install -e "training/[dev]"``` + ## License Licensed under either of diff --git a/training/pyproject.toml b/training/pyproject.toml new file mode 100644 index 0000000..5f81b14 --- /dev/null +++ b/training/pyproject.toml @@ -0,0 +1,26 @@ +[project] +name = "wildbg" +requires-python = ">=3.11" +dynamic = ["dependencies", "optional-dependencies", "version"] + + +[project.urls] +Repository = "https://github.com/carsten-wenderdel/wildbg/" + +[tool.setuptools.packages.find] +where = ["src"] +exclude = ["test"] + +[tool.setuptools.dynamic] +dependencies = { file = ["requirements.txt"] } + +[tool.setuptools.dynamic.optional-dependencies] +dev = { file = ["requirements-dev.txt"] } + +[tool.ruff] +line-length = 100 +target-version = "py311" + +[tool.black] +line-length = 100 +target-version = ['py311'] diff --git a/training/requirements-dev.txt b/training/requirements-dev.txt new file mode 100644 index 0000000..c2e9ad2 --- /dev/null +++ b/training/requirements-dev.txt @@ -0,0 +1,4 @@ +black +docformatter +mypy +ruff \ No newline at end of file diff --git a/training/requirements.txt b/training/requirements.txt new file mode 100644 index 0000000..95e7545 --- /dev/null +++ b/training/requirements.txt @@ -0,0 +1,2 @@ +pandas +torch diff --git a/training/train-on-rollout-data.py b/training/src/train-on-rollout-data.py similarity index 100% rename from training/train-on-rollout-data.py rename to training/src/train-on-rollout-data.py