-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add makefile * bump version * add isort and yapf * update contributing.md * update PR template * spelling check
- Loading branch information
1 parent
a740496
commit fc251ab
Showing
138 changed files
with
5,300 additions
and
2,727 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
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
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
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 |
---|---|---|
|
@@ -147,3 +147,4 @@ MUJOCO_LOG.TXT | |
*.swp | ||
*.pkl | ||
*.hdf5 | ||
wandb/ |
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,60 @@ | ||
SHELL=/bin/bash | ||
PROJECT_NAME=tianshou | ||
PROJECT_PATH=${PROJECT_NAME}/ | ||
LINT_PATHS=${PROJECT_PATH} test/ docs/conf.py examples/ setup.py | ||
|
||
check_install = python3 -c "import $(1)" || pip3 install $(1) --upgrade | ||
check_install_extra = python3 -c "import $(1)" || pip3 install $(2) --upgrade | ||
|
||
pytest: | ||
$(call check_install, pytest) | ||
$(call check_install, pytest_cov) | ||
$(call check_install, pytest_xdist) | ||
pytest test --cov ${PROJECT_PATH} --durations 0 -v --cov-report term-missing | ||
|
||
mypy: | ||
$(call check_install, mypy) | ||
mypy ${PROJECT_NAME} | ||
|
||
lint: | ||
$(call check_install, flake8) | ||
$(call check_install_extra, bugbear, flake8_bugbear) | ||
flake8 ${LINT_PATHS} --count --show-source --statistics | ||
|
||
format: | ||
# sort imports | ||
$(call check_install, isort) | ||
isort ${LINT_PATHS} | ||
# reformat using yapf | ||
$(call check_install, yapf) | ||
yapf -ir ${LINT_PATHS} | ||
|
||
check-codestyle: | ||
$(call check_install, isort) | ||
$(call check_install, yapf) | ||
isort --check ${LINT_PATHS} && yapf -r -d ${LINT_PATHS} | ||
|
||
check-docstyle: | ||
$(call check_install, pydocstyle) | ||
$(call check_install, doc8) | ||
$(call check_install, sphinx) | ||
$(call check_install, sphinx_rtd_theme) | ||
pydocstyle ${PROJECT_PATH} && doc8 docs && cd docs && make html SPHINXOPTS="-W" | ||
|
||
doc: | ||
$(call check_install, sphinx) | ||
$(call check_install, sphinx_rtd_theme) | ||
cd docs && make html && cd _build/html && python3 -m http.server | ||
|
||
spelling: | ||
$(call check_install, sphinx) | ||
$(call check_install, sphinx_rtd_theme) | ||
$(call check_install_extra, sphinxcontrib.spelling, sphinxcontrib.spelling pyenchant) | ||
cd docs && make spelling SPHINXOPTS="-W" | ||
|
||
clean: | ||
cd docs && make clean | ||
|
||
commit-checks: format lint mypy check-docstyle spelling | ||
|
||
.PHONY: clean spelling doc mypy lint format check-codestyle check-docstyle commit-checks |
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
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
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
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,135 @@ | ||
tianshou | ||
arXiv | ||
tanh | ||
lr | ||
logits | ||
env | ||
envs | ||
optim | ||
eps | ||
timelimit | ||
TimeLimit | ||
maxsize | ||
timestep | ||
numpy | ||
ndarray | ||
stackoverflow | ||
len | ||
tac | ||
fqf | ||
iqn | ||
qrdqn | ||
rl | ||
quantile | ||
quantiles | ||
dqn | ||
param | ||
async | ||
subprocess | ||
nn | ||
equ | ||
cql | ||
fn | ||
boolean | ||
pre | ||
np | ||
rnn | ||
rew | ||
pre | ||
perceptron | ||
bsz | ||
dataset | ||
mujoco | ||
jit | ||
nstep | ||
preprocess | ||
repo | ||
ReLU | ||
namespace | ||
th | ||
utils | ||
NaN | ||
linesearch | ||
hyperparameters | ||
pseudocode | ||
entropies | ||
nn | ||
config | ||
cpu | ||
rms | ||
debias | ||
indice | ||
regularizer | ||
miniblock | ||
modularize | ||
serializable | ||
softmax | ||
vectorized | ||
optimizers | ||
undiscounted | ||
submodule | ||
subclasses | ||
submodules | ||
tfevent | ||
dirichlet | ||
docstring | ||
webpage | ||
formatter | ||
num | ||
py | ||
pythonic | ||
中文文档位于 | ||
conda | ||
miniconda | ||
Amir | ||
Andreas | ||
Antonoglou | ||
Beattie | ||
Bellemare | ||
Charles | ||
Daan | ||
Demis | ||
Dharshan | ||
Fidjeland | ||
Georg | ||
Hassabis | ||
Helen | ||
Ioannis | ||
Kavukcuoglu | ||
King | ||
Koray | ||
Kumaran | ||
Legg | ||
Mnih | ||
Ostrovski | ||
Petersen | ||
Riedmiller | ||
Rusu | ||
Sadik | ||
Shane | ||
Stig | ||
Veness | ||
Volodymyr | ||
Wierstra | ||
Lillicrap | ||
Pritzel | ||
Heess | ||
Erez | ||
Yuval | ||
Tassa | ||
Schulman | ||
Filip | ||
Wolski | ||
Prafulla | ||
Dhariwal | ||
Radford | ||
Oleg | ||
Klimov | ||
Kaichao | ||
Jiayi | ||
Weng | ||
Duburcq | ||
Huayu | ||
Strens | ||
Ornstein | ||
Uhlenbeck |
Oops, something went wrong.