mirror of
https://github.com/wassname/ray.git
synced 2026-07-08 17:04:11 +08:00
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:
committed by
Philipp Moritz
parent
fb33fa9097
commit
c4cba98c75
@@ -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"]))
|
||||
|
||||
Reference in New Issue
Block a user