From 2e972c2a779e202021a89d82aabece966b1179f4 Mon Sep 17 00:00:00 2001 From: Ian Rodney Date: Wed, 17 Jun 2020 09:14:25 -0700 Subject: [PATCH] RLLIB and pylintrc (#8995) --- pylintrc | 6 +++--- rllib/agents/trainer.py | 2 +- rllib/evaluation/rollout_worker.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pylintrc b/pylintrc index 21ab441a2..b83551f29 100644 --- a/pylintrc +++ b/pylintrc @@ -7,11 +7,11 @@ # pygtk.require(). #init-hook= -# Add files or directories to the blacklist. They should be base names, not +# Add files or directories to the ignore list. They should be base names, not # paths. ignore=CVS -# Add files or directories matching the regex patterns to the blacklist. The +# Add files or directories matching the regex patterns to the ignore list. The # regex matches against base names, not paths. ignore-patterns= @@ -32,7 +32,7 @@ unsafe-load-any-extension=no # A comma-separated list of package or module names from where C extensions may # be loaded. Extensions are loading into the active Python interpreter and may # run arbitrary code -extension-pkg-whitelist= +extension-pkg-allow-list= # Allow optimization of some AST trees. This will activate a peephole AST # optimizer, which will apply various small optimizations. For instance, it can diff --git a/rllib/agents/trainer.py b/rllib/agents/trainer.py index 877fe88f9..1a4c051a0 100644 --- a/rllib/agents/trainer.py +++ b/rllib/agents/trainer.py @@ -343,7 +343,7 @@ COMMON_CONFIG = { "policies": {}, # Function mapping agent ids to policy ids. "policy_mapping_fn": None, - # Optional whitelist of policies to train, or None for all policies. + # Optional list of policies to train, or None for all policies. "policies_to_train": None, # Optional function that can be used to enhance the local agent # observations to include more state. diff --git a/rllib/evaluation/rollout_worker.py b/rllib/evaluation/rollout_worker.py index 75521daa0..e3f1b8c86 100644 --- a/rllib/evaluation/rollout_worker.py +++ b/rllib/evaluation/rollout_worker.py @@ -164,7 +164,7 @@ class RolloutWorker(ParallelIteratorWorker): policy ids in multi-agent mode. This function will be called each time a new agent appears in an episode, to bind that agent to a policy for the duration of the episode. - policies_to_train (list): Optional whitelist of policies to train, + policies_to_train (list): Optional list of policies to train, or None for all policies. tf_session_creator (func): A function that returns a TF session. This is optional and only useful with TFPolicy.