Skip to content

Make it less likely to show duplicate answers - #12

Merged
alexgreene merged 2 commits into
alexgreene:masterfrom
c-w:bugfix/multiple-same-answers
May 11, 2017
Merged

alexgreene merged 2 commits into
alexgreene:masterfrom
c-w:bugfix/multiple-same-answers

Conversation

@c-w

@c-w c-w commented Mar 25, 2017

Copy link
Copy Markdown
Contributor

Previously, we generated two incorrect answers for every question by sampling with replacement from the pool of all possible entities for some question. This means that we can display duplicate answers for a question in two scenarios: (1) we sample the same incorrect answer twice, or (2) one of the sampled incorrect answers is the same as the correct answer.

This commit adds some retry logic to the front-end that re-samples the incorrect answers if any of the two conditions above occurred. This does not eliminate the possibility of duplicate answers being displayed (e.g. consider the situation where we only have two candidate answers), but it should greatly reduce the impact to the user.

Fixes #5

c-w and others added 2 commits March 25, 2017 16:47
Previously, we generated two incorrect answers for every question by
sampling with replacement from the pool of all possible entities for
some question. This means that we can display duplicate answers for a
question in two scenarios: (1) we sample the same incorrect answer
twice, or (2) one of the sampled incorrect answers is the same as the
correct answer.

This commit adds some retry logic to the front-end that re-samples the
incorrect answers if any of the two conditions above occurred. This does
not eliminate the possibility of duplicate answers being displayed (e.g.
consider the situation where we only have two candidate answers), but it
should greatly reduce the impact to the user.

Fixes #5
@alexgreene
alexgreene merged commit e4c82ee into alexgreene:master May 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants