Skip to content

Commit 3f00231

Browse files
committed
Minor
1 parent a8e70b6 commit 3f00231

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

examples/mujoco/mujoco_ppo_hl_multi.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828
from tianshou.highlevel.params.algorithm_params import PPOParams
2929
from tianshou.highlevel.params.lr_scheduler import LRSchedulerFactoryFactoryLinear
3030

31-
log = logging.getLogger(__name__)
32-
3331

3432
def main(
3533
num_experiments: int = 5,

tianshou/evaluation/launcher.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,14 @@ def _launch(self, experiments: Sequence["Experiment"]) -> list[InfoStats | None]
144144

145145

146146
class RegisteredExpLauncher(Enum):
147-
joblib = "joblib"
148-
sequential = "sequential"
147+
JOBLIB = "joblib"
148+
SEQUENTIAL = "sequential"
149149

150150
def create_launcher(self) -> ExpLauncher:
151151
match self:
152-
case RegisteredExpLauncher.joblib:
152+
case RegisteredExpLauncher.JOBLIB:
153153
return JoblibExpLauncher()
154-
case RegisteredExpLauncher.sequential:
154+
case RegisteredExpLauncher.SEQUENTIAL:
155155
return SequentialExpLauncher()
156156
case _:
157157
raise NotImplementedError(

tianshou/highlevel/experiment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ def __init__(self, experiments: list[Experiment]):
490490

491491
def run(
492492
self,
493-
launcher: ExpLauncher | RegisteredExpLauncher | str = RegisteredExpLauncher.sequential,
493+
launcher: ExpLauncher | RegisteredExpLauncher | str = RegisteredExpLauncher.SEQUENTIAL,
494494
) -> list[InfoStats | None]:
495495
if isinstance(launcher, str):
496496
launcher = RegisteredExpLauncher[launcher]
@@ -685,7 +685,7 @@ def build_seeded_collection(self, num_experiments: int) -> ExperimentCollection:
685685
def build_and_run(
686686
self,
687687
num_experiments: int = 1,
688-
launcher: ExpLauncher | RegisteredExpLauncher | str = RegisteredExpLauncher.sequential,
688+
launcher: ExpLauncher | RegisteredExpLauncher | str = RegisteredExpLauncher.SEQUENTIAL,
689689
perform_rliable_analysis: bool = True,
690690
) -> list[InfoStats | None]:
691691
"""Build and run experiments. With multiple experiments, the seeds will be non-overlapping and the parallelism is controlled by the launcher.

0 commit comments

Comments
 (0)