-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from yamatokataoka/set-up-rl-human-prefs
set up rl-human-prefs
- Loading branch information
Showing
11 changed files
with
342 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[flake8] | ||
ignore = E203, W503 | ||
max-line-length = 119 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# python | ||
__pycache__/ | ||
|
||
# mypy | ||
/.mypy_cache | ||
|
||
# tox | ||
/.tox | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# poetry | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[settings] | ||
profile = black | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[mypy] | ||
ignore_missing_imports = True | ||
disallow_untyped_calls = True | ||
disallow_untyped_defs = True | ||
disallow_incomplete_defs = True | ||
no_implicit_optional = True | ||
warn_redundant_casts = True | ||
warn_unused_ignores = True | ||
warn_return_any = True | ||
warn_unreachable = True | ||
strict_equality = True | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[tool.poetry] | ||
name = "rl-human-prefs" | ||
version = "0.1.0" | ||
description = "Replication of Deep Reinforcement Learning from Human Preferences (Christiano et al, 2017)." | ||
license = "MIT" | ||
authors = ["Yamato Kataoka"] | ||
readme = "README.md" | ||
homepage = "https://github.com/yamatokataoka/learning-from-human-preferences" | ||
repository = "https://github.com/yamatokataoka/learning-from-human-preferences" | ||
keywords = ["rl-human-prefs", "reinforcement learning", "deep learning", "pytorch", "AI safety"] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Education", | ||
"Intended Audience :: Science/Research", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Scientific/Engineering :: Artificial Intelligence", | ||
"Topic :: Software Development :: Libraries" | ||
] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.7" | ||
|
||
[tool.poetry.dev-dependencies] | ||
tox = "^3.24.5" | ||
|
||
[build-system] | ||
requires = ["poetry-core>=1.0.0"] | ||
build-backend = "poetry.core.masonry.api" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = "0.1.0" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from rl_human_prefs import __version__ | ||
|
||
|
||
def test_version() -> None: | ||
assert __version__ == "0.1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[tox] | ||
envlist = py310, check, fix | ||
isolated_build = true | ||
|
||
[testenv] | ||
deps = pytest | ||
commands = pytest -rA tests | ||
|
||
[testenv:check] | ||
skip_install = true | ||
deps = | ||
isort | ||
black | ||
flake8 | ||
mypy | ||
commands = | ||
isort --diff . | ||
black --diff . | ||
flake8 . | ||
mypy . | ||
|
||
|
||
[testenv:fix] | ||
skip_install = true | ||
deps = | ||
isort | ||
black | ||
commands = | ||
isort . | ||
black . |