16 Test that means change over time.
18 The class should randomly walk the mean of the distribution of each arm
19 after a call to select. So call it a number of times and watch for some
20 sort of change. Because it is random, the exact change can't be known,
21 so just ensure that the numbers do in fact change.
25 (mean, _) = bandit.trueValues()
26 previous_mean = numpy.copy(mean)
27 values_have_changed =
False
32 (mean, _) = bandit.trueValues()
33 values_have_changed |=
not numpy.array_equal(previous_mean, mean)
34 previous_mean = numpy.copy(mean)
35 self.assertTrue(values_have_changed)