Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce ACER's test cases and maximum timesteps #404

Merged
merged 1 commit into from
Feb 28, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Reduce test cases and maximum timesteps
  • Loading branch information
muupan committed Feb 24, 2019
commit 689c83b00dc3b96808a98cf033015265dd985c09
6 changes: 3 additions & 3 deletions tests/agents_tests/test_acer.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def loss_func_with_constraint(distrib):
testing.product({
'discrete': [True, False],
't_max': [5],
'use_lstm': [True, False],
'use_lstm': [True],
'episodic': [True, False],
'n_times_replay': [0, 2],
'disable_online_update': [True, False],
Expand All @@ -357,7 +357,7 @@ def test_abc_fast(self):
episodic=self.episodic, steps=10, require_success=False)

def _test_abc(self, t_max, use_lstm, discrete=True, episodic=True,
steps=1000000, require_success=True):
steps=100000, require_success=True):

nproc = 8

Expand Down Expand Up @@ -461,7 +461,7 @@ def phi(x):
beta = 1e-5
if self.n_times_replay == 0 and self.disable_online_update:
# At least one of them must be enabled
self.disable_online_update = False
return
agent = acer.ACER(
model, opt, replay_buffer=replay_buffer,
t_max=t_max, gamma=gamma, beta=beta,
Expand Down