Skip to content

Commit 512881a

Browse files
add bayesian inference
1 parent 4ed5c5a commit 512881a

File tree

2 files changed

+251
-1053
lines changed

2 files changed

+251
-1053
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from hypothesis import given
2+
from hypothesis.strategies import text
3+
4+
5+
def tokenize_sentence(sentence: str):
6+
return sentence.split(' ')
7+
8+
def join_sentence(sentence: str):
9+
return ' '.join(sentence)
10+
11+
@given(text())
12+
def test_tokenize_sentence(text: str):
13+
14+
assert join_sentence(tokenize_sentence(text)) == text

statistics/bayesian_example/google analytics.ipynb

Lines changed: 237 additions & 1053 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)