浏览代码

Update environment.py

__init__ params were over indented
/asymm-envs
GitHub 5 年前
当前提交
414cd0a6
共有 1 个文件被更改,包括 10 次插入10 次删除
  1. 20
      ml-agents-envs/mlagents_envs/environment.py

20
ml-agents-envs/mlagents_envs/environment.py


DEFAULT_EDITOR_PORT = 5004
def __init__(
self,
file_name: Optional[str] = None,
worker_id: int = 0,
base_port: int = 5005,
seed: int = 0,
docker_training: bool = False,
no_graphics: bool = False,
timeout_wait: int = 60,
args: Optional[List[str]] = None,
side_channels: Optional[List[SideChannel]] = None,
self,
file_name: Optional[str] = None,
worker_id: int = 0,
base_port: int = 5005,
seed: int = 0,
docker_training: bool = False,
no_graphics: bool = False,
timeout_wait: int = 60,
args: Optional[List[str]] = None,
side_channels: Optional[List[SideChannel]] = None,
):
"""
Starts a new unity environment and establishes a connection with the environment.

正在加载...
取消
保存