Skip to content

Commit 1e47b55

Browse files
Merge pull request CamDavidsonPilon#198 from rcrehuet/patch-1
Update ClusteringWithGaussians.py
2 parents d8f6d2b + e198f97 commit 1e47b55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ExamplesFromChapters/Chapter3/ClusteringWithGaussians.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import numpy as np
12
import pymc as pm
23

34

@@ -8,7 +9,7 @@
89

910
assignment = pm.Categorical("assignment", [p, 1-p], size = data.shape[0] )
1011

11-
taus = 1.0/mc.Uniform( "stds", 0, 100, size= 2)**2 #notice the size!
12+
taus = 1.0/pm.Uniform( "stds", 0, 100, size= 2)**2 #notice the size!
1213
centers = pm.Normal( "centers", [150, 150], [0.001, 0.001], size =2 )
1314

1415
"""

0 commit comments

Comments
 (0)