Skip to content

Commit 022ccfb

Browse files
author
ugurthemaster
committed
Update ClusteringWithGaussians.py
A typo has been corrected
1 parent 9e4c4ef commit 022ccfb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ExamplesFromChapters/Chapter3/ClusteringWithGaussians.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import pymc as pm
32

43

@@ -13,7 +12,7 @@
1312
centers = pm.Normal( "centers", [150, 150], [0.001, 0.001], size =2 )
1413

1514
"""
16-
The below determinsitic functions map a assingment, in this case 0 or 1,
15+
The below deterministic functions map a assingment, in this case 0 or 1,
1716
to a set of parameters, located in the (1,2) arrays `taus` and `centers.`
1817
"""
1918

@@ -35,4 +34,4 @@ def tau_i( assignment = assignment, taus = taus ):
3534
map_ = pm.MAP( model )
3635
map_.fit()
3736
mcmc = pm.MCMC( model )
38-
mcmc.sample( 100000, 50000 )
37+
mcmc.sample( 100000, 50000 )

0 commit comments

Comments
 (0)