Skip to content

Commit

Permalink
Merge pull request #22 from CarperAI/release
Browse files Browse the repository at this point in the history
Remove persist object
  • Loading branch information
jsuarez5341 authored Oct 13, 2023
2 parents 40e7338 + 15b1fb1 commit fd071a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions reinforcement_learning/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 fd071a0

Please sign in to comment.