Skip to content

Add a deterministic mode to IQN for stable tests#529

Merged
muupan merged 6 commits intochainer:masterfrom
muupan:iqn-act-deterministically
Sep 17, 2019
Merged

Add a deterministic mode to IQN for stable tests#529
muupan merged 6 commits intochainer:masterfrom
muupan:iqn-act-deterministically

Conversation

@muupan
Copy link
Copy Markdown
Member

@muupan muupan commented Aug 23, 2019

Merge #528 before this PR.

Resolves #522

This PR adds an optional deterministic mode to IQN that makes it to use a deterministic, equally-spaced sequence of numbers as quantile thresholds for evaluation. This prevents IQN and DoubleIQN's slow tests from randomly failing.

Below is the results of running pytest 10 times (including slow and gpu tests) and counting number of full successes.

Before this PR:

  • pytest -xsv tests/agents_tests/test_iqn.py: 4/10
  • pytest -xsv tests/agents_tests/test_double_iqn.py: 3/10

After this PR:

  • pytest -xsv tests/agents_tests/test_iqn.py: 10/10
  • pytest -xsv tests/agents_tests/test_double_iqn.py: 10/10

@muupan muupan changed the title [WIP] Add a deterministic mode to IQN for stable tests Add a deterministic mode to IQN for stable tests Aug 26, 2019
@muupan
Copy link
Copy Markdown
Member Author

muupan commented Aug 26, 2019

/test

@pfn-ci-bot
Copy link
Copy Markdown
Collaborator

Successfully created a job for commit 2fe1139:

@muupan muupan requested a review from ummavi September 10, 2019 10:01
Copy link
Copy Markdown
Member

@ummavi ummavi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@muupan
Copy link
Copy Markdown
Member Author

muupan commented Sep 17, 2019

/test

@pfn-ci-bot
Copy link
Copy Markdown
Collaborator

Successfully created a job for commit 5647606:

@muupan muupan merged commit 1feffd8 into chainer:master Sep 17, 2019
@muupan muupan deleted the iqn-act-deterministically branch September 17, 2019 06:49
@toslunar toslunar mentioned this pull request Oct 31, 2019
@muupan muupan added this to the v0.8 milestone Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IQN's slow tests are unstable

3 participants