commit 05566faf75a67c808772334a6b622b9c3d9b898f
parent 3dac5f35cd60a9b0068013ff1fd289ee34f9935b
Author: Peter Wildeford <peter@peterhurford.com>
Date: Fri, 9 Jun 2023 22:00:20 +0100
Fix squigglepy
Corrects the "ValueError: You cannot nest discrete distributions within mixture distributions"
Runs in 4.6s on my laptop (M2 chip)
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/squigglepy/samples.py b/squigglepy/samples.py
@@ -5,8 +5,8 @@ p_a = 0.8
p_b = 0.5
p_c = p_a * p_b
-dist_0 = sq.discrete({0: 1})
-dist_1 = sq.discrete({1: 1})
+dist_0 = 0
+dist_1 = 1
dist_some = sq.to(1, 3)
dist_many = sq.to(2, 10)