You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tested evaluation of algorithms and noted to things:
Algorithm.evaluate() does not count agent steps and environment steps, if a cusotm evaluation function is used.
The evaluaion worker set is not None even if the evaluation_num_workers=0.
What you expected to happen
That metrics are collected identically when a custom evaluation funciton is used and that the evaluation_num_workers=0 lets us run the evaluation on the local worker in Algorothm.workers.
Versions / Dependencies
Ray nightly
Python 3.9.12
Fedora Linux 39
Reproduction script
Run our custom evaluation example.
Issue Severity
Medium: It is a significant difficulty but I can work around it.
The text was updated successfully, but these errors were encountered:
simonsays1980
added
bug
Something that is supposed to be working; but isn't
triage
Needs triage (eg: priority, bug/not-bug, and owning component)
labels
Apr 9, 2024
The evaluaion worker set is not None even if the evaluation_num_workers=0.
This is the expected behavior, as long as evaluation_interval is != 0.
from ray.rllib.algorithms.ppo import PPOConfig
config = (
PPOConfig()
.environment("CartPole-v1")
.evaluation(
evaluation_num_env_runners=0,
),
)
algo = config.build()
print(algo.evaluation_workers is None)
Should print True, however, if I change evaluation_interval to 1 (default is 0), then RLlib will create a eval WorkerSet with num_workers=0 (only 1 local worker, no remote workers).
simonsays1980
added
P1
Issue that should be fixed within a few weeks
enhancement
Request for new feature and/or capability
and removed
triage
Needs triage (eg: priority, bug/not-bug, and owning component)
enhancement
Request for new feature and/or capability
labels
Apr 27, 2024
What happened + What you expected to happen
What happened
I tested evaluation of algorithms and noted to things:
Algorithm.evaluate()
does not count agent steps and environment steps, if a cusotm evaluation function is used.None
even if theevaluation_num_workers=0
.What you expected to happen
That metrics are collected identically when a custom evaluation funciton is used and that the
evaluation_num_workers=0
lets us run the evaluation on the local worker inAlgorothm.workers
.Versions / Dependencies
Ray nightly
Python 3.9.12
Fedora Linux 39
Reproduction script
Run our custom evaluation example.
Issue Severity
Medium: It is a significant difficulty but I can work around it.
The text was updated successfully, but these errors were encountered: