浏览代码

Release v0.5 delete unityagents (#1151)

* fixed the loggers

* Modified the documentation
/develop-generalizationTraining-TrainerController
GitHub 6 年前
当前提交
ab5c49e8
共有 5 个文件被更改,包括 6 次插入6 次删除
  1. 4
      docs/Training-on-Amazon-Web-Service.md
  2. 2
      docs/Training-on-Microsoft-Azure.md
  3. 2
      ml-agents/mlagents/trainers/bc/policy.py
  4. 2
      ml-agents/mlagents/trainers/policy.py
  5. 2
      ml-agents/mlagents/trainers/ppo/policy.py

4
docs/Training-on-Amazon-Web-Service.md


7. Test the instance setup from Python using:
```python
from unityagents import UnityEnvironment
from mlagents.envs import UnityEnvironment
env = UnityEnvironment(<your_env>)
```

//cd into your ml-agents/python folder
chmod +x <your_env>.x86_64
python learn.py <your_env> --train
```
```

2
docs/Training-on-Microsoft-Azure.md


7. Test the instance setup from Python using:
```python
from unityagents import UnityEnvironment
from mlagents.envs import UnityEnvironment
env = UnityEnvironment(<your_env>)
```

2
ml-agents/mlagents/trainers/bc/policy.py


from mlagents.trainers.bc.models import BehavioralCloningModel
from mlagents.trainers.policy import Policy
logger = logging.getLogger("unityagents")
logger = logging.getLogger("mlagents.trainers")
class BCPolicy(Policy):

2
ml-agents/mlagents/trainers/policy.py


from mlagents.trainers import UnityException
from mlagents.trainers.models import LearningModel
logger = logging.getLogger("unityagents")
logger = logging.getLogger("mlagents.trainers")
class UnityPolicyException(UnityException):

2
ml-agents/mlagents/trainers/ppo/policy.py


from mlagents.trainers.ppo.models import PPOModel
from mlagents.trainers.policy import Policy
logger = logging.getLogger("unityagents")
logger = logging.getLogger("mlagents.trainers")
class PPOPolicy(Policy):

正在加载...
取消
保存