Skip to content

Commit 83efb8d

Browse files
author
ugurthemaster
committed
Update SMS_behaviour.py
minor correction.
1 parent a810cf0 commit 83efb8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ExamplesFromChapters/Chapter1/SMS_behaviour.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
def lambda_( tau = tau, lambda_1 = lambda_1, lambda_2 = lambda_2 ):
1717
out = np.zeros( n_count_data )
1818
out[:tau] = lambda_1 #lambda before tau is lambda1
19-
out[tau:] = lambda_2 #lambda after tau is lambda1
19+
out[tau:] = lambda_2 #lambda after tau is lambda2
2020
return out
2121

2222
observation = pm.Poisson( "obs", lambda_, value = count_data, observed = True)
2323
model = pm.Model( [observation, lambda_1, lambda_2, tau] )
2424

2525

2626
mcmc = pm.MCMC(model)
27-
mcmc.sample( 100000, 50000, 1 )
27+
mcmc.sample( 100000, 50000, 1 )

0 commit comments

Comments
 (0)