Skip to content

Commit

Permalink
reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DRMacIver committed Mar 20, 2015
1 parent 821bdee commit b452a56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hypothesis/internal/examplesource.py
Expand Up @@ -87,9 +87,8 @@ def draw_parameter_score(self, i):
return self.random.betavariate(alpha, beta)

def pick_a_parameter(self):
"""
Draw a parameter value, either picking one we've already generated or
generating a new one.
"""Draw a parameter value, either picking one we've already generated
or generating a new one.
This is a modified form of Thompson sampling with a bunch of special
cases designed around failure modes I found in practice.
Expand All @@ -106,6 +105,7 @@ def pick_a_parameter(self):
least 1/(2n) of generating a new parameter, but means that we are
less enthusiastic to explore novelty in cases where most parameters
we've drawn are terrible.
"""
self.mark_set = False
self.total_count += 1
Expand Down

0 comments on commit b452a56

Please sign in to comment.