Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pymc/tests/distributions/test_mixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ def test_component_choice_random(self):
weights = [0.5, 0.5]
components = [Normal.dist(-10, 0.01), Normal.dist(10, 0.01)]
mix = Mixture.dist(weights, components)
draws = draw(mix, draws=10)
# Probability of coming from same component 10 times is 0.5**10
draws = draw(mix, draws=20, random_seed=self.get_random_state())
# Probability of coming from same component 20 times is 0.5**20
assert np.unique(draws > 0).size == 2

@pytest.mark.parametrize(
Expand Down