Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f555f8 commit 80bac99Copy full SHA for 80bac99
1 file changed
examples/animation/bayes_update.py
@@ -41,6 +41,10 @@ def __init__(self, ax, prob=0.5):
41
def __call__(self, i):
42
# This way the plot can continuously run and we just keep
43
# watching new realizations of the process
44
+ if i == 0:
45
+ self.success = 0
46
+ self.line.set_data([], [])
47
+ return self.line,
48
49
# Choose success based on exceed a threshold with a uniform pick
50
if np.random.rand(1,) < self.prob:
0 commit comments