mirror of
https://github.com/wassname/ray.git
synced 2026-07-08 00:34:37 +08:00
[rllib, tune] TrainingResult -> Dict, Removes C408 from flake8 (#2565)
This commit is contained in:
@@ -20,7 +20,8 @@ def easy_objective(config, reporter):
|
||||
for i in range(100):
|
||||
reporter(
|
||||
timesteps_total=i,
|
||||
mean_loss=((config["height"] - 14)**2 + abs(config["width"] - 3)))
|
||||
neg_mean_loss=-(config["height"] - 14)**2 +
|
||||
abs(config["width"] - 3))
|
||||
time.sleep(0.02)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user