浏览代码

replaced ghost_swap with team_change in tests

/develop/cubewars
Andrew Cohen 5 年前
当前提交
c4e54218
共有 2 个文件被更改,包括 9 次插入9 次删除
  1. 2
      ml-agents/mlagents/trainers/tests/test_simple_rl.py
  2. 16
      ml-agents/mlagents/trainers/tests/test_trainer_util.py

2
ml-agents/mlagents/trainers/tests/test_simple_rl.py


keep_checkpoints=1,
train_model=True,
load_model=False,
ghost_swap=10000,
team_change=10000,
seed=seed,
meta_curriculum=meta_curriculum,
multi_gpu=False,

16
ml-agents/mlagents/trainers/tests/test_trainer_util.py


keep_checkpoints=keep_checkpoints,
train_model=train_model,
load_model=load_model,
ghost_swap=100,
team_change=100,
seed=seed,
)
trainers = {}

keep_checkpoints=keep_checkpoints,
train_model=train_model,
load_model=load_model,
ghost_swap=100,
team_change=100,
seed=seed,
)
trainers = {}

keep_checkpoints = 1
train_model = True
load_model = False
ghost_swap = 100
team_change = 100
seed = 11
bad_config = dummy_bad_config
BrainParametersMock.return_value.brain_name = "testbrain"

keep_checkpoints=keep_checkpoints,
train_model=train_model,
load_model=load_model,
ghost_swap=ghost_swap,
team_change=team_change,
seed=seed,
)
trainers = {}

keep_checkpoints=keep_checkpoints,
train_model=train_model,
load_model=load_model,
ghost_swap=ghost_swap,
team_change=team_change,
seed=seed,
)
trainers = {}

keep_checkpoints=keep_checkpoints,
train_model=train_model,
load_model=load_model,
ghost_swap=ghost_swap,
team_change=team_change,
seed=seed,
)
trainers = {}

keep_checkpoints=1,
train_model=True,
load_model=False,
ghost_swap=100,
team_change=100,
seed=42,
)
trainer_factory.generate(brain_parameters.brain_name)

keep_checkpoints=1,
train_model=True,
load_model=False,
ghost_swap=100,
team_change=100,
seed=42,
)
with pytest.raises(TrainerConfigError):

正在加载...
取消
保存