Skip to content

Commit

Permalink
Fix training with new ranker. You may have to clear out your old data…
Browse files Browse the repository at this point in the history
… dir
  • Loading branch information
jsuarez5341 committed Oct 14, 2023
1 parent c1a4357 commit 889f172
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clean_pufferl.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,8 @@ def __post_init__(self, *args, **kwargs):
# Create policy ranker
if self.policy_ranker is None:
if self.data_dir is not None:
self.policy_ranker = pufferlib.utils.PersistentObject(
self.policy_ranker = pufferlib.policy_ranker.OpenSkillRanker(
os.path.join(self.data_dir, "openskill.pickle"),
pufferlib.policy_ranker.OpenSkillRanker,
"anchor",
)
if "learner" not in self.policy_ranker.ratings():
Expand Down

0 comments on commit 889f172

Please sign in to comment.