Skip to content

Commit

Permalink
Remove persist object
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarez5341 committed Oct 13, 2023
1 parent 26f64fe commit 15b1fb1
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 15b1fb1

Please sign in to comment.