Remove deprecation warnings when running actor tests (#3563)

* remove deprecation warnings when running actor tests

* replacing logger.warn with logger.warning

* Update worker.py

* Update policy_client.py

* Update compression.py
This commit is contained in:
Alexey Tumanov
2018-12-18 17:04:51 -08:00
committed by Philipp Moritz
parent fb33fa9097
commit c4cba98c75
12 changed files with 23 additions and 21 deletions
+2 -2
View File
@@ -118,7 +118,7 @@ class PPOAgent(Agent):
if waste_ratio > 1.5:
raise ValueError(msg)
else:
logger.warn(msg)
logger.warning(msg)
if self.config["sgd_minibatch_size"] > self.config["train_batch_size"]:
raise ValueError(
"Minibatch size {} must be <= train batch size {}.".format(
@@ -136,6 +136,6 @@ class PPOAgent(Agent):
"simple_optimizer=True if this doesn't work for you.")
if self.config["observation_filter"] != "NoFilter":
# TODO(ekl): consider setting the default to be NoFilter
logger.warn(
logger.warning(
"By default, observations will be normalized with {}".format(
self.config["observation_filter"]))