Last active
July 17, 2018 16:17
-
-
Save sdia-zz/803da038cc3ff89a7a32f899f72f0746 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
belief = Beta(2,2) # belief is instance of Beta | |
data = None | |
while True: | |
data = get_new_data() | |
belief = belief * likelihood(data) | |
assert IsInstance(belief, Beta) == True # belief remains an instance of Beta |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment