diff --git a/src/hypothesis/internal/examplesource.py b/src/hypothesis/internal/examplesource.py index 1487ed6db6..0ed0f5d6e0 100644 --- a/src/hypothesis/internal/examplesource.py +++ b/src/hypothesis/internal/examplesource.py @@ -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. @@ -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