Skip to content

Commit

Permalink
parameters synced for identifiability condition
Browse files Browse the repository at this point in the history
  • Loading branch information
kbudhath committed Aug 29, 2017
1 parent c37a138 commit 6dbb7eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_synthetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def map_randomly(Xd, fXd):

def generate_X(src, size):
if src == "uniform":
maxX = random.randint(1, 10)
maxX = random.randint(2, 10)
X = [random.randint(1, maxX) for i in xrange(size)]
elif src == "multinomial":
p_nums = [random.randint(1, 10) for i in xrange(random.randint(2, 11))]
Expand All @@ -66,7 +66,7 @@ def generate_X(src, size):
elif src == "hypergeometric":
ngood = random.randint(1, 40)
nbad = random.randint(1, 40)
nsample = random.randint(1, min(40, ngood + nbad))
nsample = random.randint(1, min(40, ngood + nbad - 1))
X = np.random.hypergeometric(ngood, nbad, nsample, size).tolist()
elif src == "poisson":
lam = random.randint(1, 10)
Expand Down

0 comments on commit 6dbb7eb

Please sign in to comment.