Skip to content

Commit

Permalink
tmp save
Browse files Browse the repository at this point in the history
  • Loading branch information
Ming Zhou committed Nov 24, 2023
1 parent 7a77d43 commit 207bcae
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 6 deletions.
3 changes: 3 additions & 0 deletions malib/learner/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ def __init__(
self._thread_pool = ThreadPoolExecutor(max_workers=len(learners))
self._stopping_conditions = stopping_conditions

# init strategy spec
self.add_policies()

Logger.info(
f"training manager launched, {len(self._learners)} learner(s) created"
)
Expand Down
1 change: 0 additions & 1 deletion malib/models/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

@dataclass
class ModelConfig:

model_cls: Type

model_args: Dict[str, Any]
Expand Down
1 change: 0 additions & 1 deletion malib/rl/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

@dataclass
class Algorithm:

policy: Type[Policy]

trainer: Type[Trainer]
Expand Down
1 change: 0 additions & 1 deletion malib/rollout/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

@dataclass
class RolloutConfig:

num_workers: int = 1
"""Defines how many workers will be used for executing one rollout task, default is 1"""

Expand Down
1 change: 0 additions & 1 deletion malib/rollout/envs/mdp/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

class MDPEnvironment(Environment):
def __init__(self, **configs):

try:
from blackhc import mdp
from blackhc.mdp import example as mdp_examples
Expand Down
2 changes: 1 addition & 1 deletion malib/scenarios/sarl_scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def create_global_stopper(self) -> StoppingCondition:


def execution_plan(experiment_tag: str, scenario: SARLScenario, verbose: bool = True):
# TODO(ming): simplify the initialization of training and rollout manager with a scenario instance as input
# TODO(ming): simplize the initialization of training and rollout manager with a scenario instance as input
learner_manager = LearnerManager(
stopping_conditions=scenario.stopping_conditions,
algorithm=scenario.algorithm,
Expand Down
1 change: 0 additions & 1 deletion tests/rollout/test_pb_rollout_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ def multiagent_post_process(


class FakeFeatureHandler(BaseFeature):

pass


Expand Down

0 comments on commit 207bcae

Please sign in to comment.