Skip to content

Commit

Permalink
Merge pull request #20 from CarperAI/release
Browse files Browse the repository at this point in the history
Add cleanpufferl
  • Loading branch information
jsuarez5341 authored Sep 21, 2023
2 parents e3a1aae + 2ed5012 commit 61ec922
Show file tree
Hide file tree
Showing 4 changed files with 716 additions and 10 deletions.
7 changes: 3 additions & 4 deletions evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@
from pufferlib.frameworks import cleanrl
import pufferlib.policy_ranker
import pufferlib.utils
import clean_pufferl

import environment

from reinforcement_learning import config
from reinforcement_learning import config, clean_pufferl

def setup_policy_store(policy_store_dir):
# CHECK ME: can be custom models with different architectures loaded here?
Expand Down Expand Up @@ -62,7 +61,7 @@ def save_replays(policy_store_dir, save_dir):
from reinforcement_learning import policy # import your policy
def make_policy(envs):
learner_policy = policy.Baseline(
envs._driver_env,
envs.driver_env,
input_size=args.input_size,
hidden_size=args.hidden_size,
task_size=args.task_size
Expand Down Expand Up @@ -172,7 +171,7 @@ def rank_policies(policy_store_dir, eval_curriculum_file, device):
from reinforcement_learning import policy # import your policy
def make_policy(envs):
learner_policy = policy.Baseline(
envs,
envs.driver_env,
input_size=args.input_size,
hidden_size=args.hidden_size,
task_size=args.task_size
Expand Down
1 change: 0 additions & 1 deletion reinforcement_learning/clean_pufferl.py

This file was deleted.

Loading

0 comments on commit 61ec922

Please sign in to comment.