Skip to content

Commit

Permalink
[Tests] less ants for faster testing
Browse files Browse the repository at this point in the history
  • Loading branch information
fedebotu committed Jun 20, 2024
1 parent 1315201 commit a623124
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,13 @@ def test_nargnn():
@pytest.mark.skipfif("numba" not in sys.modules, reason="Numba not installed")
def test_deepaco():
env = TSPEnv(generator_params=dict(num_loc=20))
model = DeepACO(env, train_data_size=10, val_data_size=10, test_data_size=10)
model = DeepACO(
env,
train_data_size=10,
val_data_size=10,
test_data_size=10,
policy_kwargs={"n_ants": 5},
)
trainer = RL4COTrainer(
max_epochs=1, gradient_clip_val=1, devices=1, accelerator=accelerator
)
Expand Down

0 comments on commit a623124

Please sign in to comment.