← Về thư mục
skills/pufferlib/scripts/env_template.py
- DiscreteSpace · class · L25-L38 — class DiscreteSpace
- shape · method · L31-L32 — def shape(self) -> tuple[int, ...]
- contains · method · L34-L35 — def contains(self, value: Any) -> bool
- sample · method · L37-L38 — def sample(self, rng: random.Random) -> int
- BoxSpace · class · L42-L60 — class BoxSpace
- contains · method · L50-L60 — def contains(self, value: Any) -> bool
- SyntheticGymEnv · class · L63-L146 — class SyntheticGymEnv
- init · method · L68-L80 — def init(self, *, max_steps: int = 16) -> None
- _observation · method · L82-L88 — def _observation(self) -> list[float]
- reset · method · L90-L115 — def reset( self, *, seed: int | None = None, options: dict[str, Any] | None = None, ) -> tuple[list[float], dict[str, Any]]
- step · method · L117-L142 — def step( self, action: int ) -> tuple[list[float], float, bool, bool, dict[str, Any]]
- close · method · L144-L146 — def close(self) -> None
- run_demo · function · L149-L180 — def run_demo(*, seed: int, steps: int, max_steps: int) -> dict[str, Any]
- build_parser · function · L183-L191 — def build_parser() -> argparse.ArgumentParser
- main · function · L194-L206 — def main(argv: list[str] | None = None) -> int