From 05c705ba30e1ecf331b0efecf09931d03120ec8f Mon Sep 17 00:00:00 2001 From: Marianne Corvellec Date: Mon, 31 Oct 2016 20:42:28 -0400 Subject: [PATCH] Fix typos in code examples. --- ExamplesFromChapters/Chapter1/SMS_behaviour.py | 2 +- ExamplesFromChapters/Chapter3/ClusteringWithGaussians.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ExamplesFromChapters/Chapter1/SMS_behaviour.py b/ExamplesFromChapters/Chapter1/SMS_behaviour.py index 489571c0..05d5378f 100644 --- a/ExamplesFromChapters/Chapter1/SMS_behaviour.py +++ b/ExamplesFromChapters/Chapter1/SMS_behaviour.py @@ -7,7 +7,7 @@ alpha = 1.0 / count_data.mean() # recall count_data is # the variable that holds our txt counts -lambda_1 = pm.Exponential("lambda_1", alpha) +lambda_1 = pm.Exponential("lambda_1", alpha) lambda_2 = pm.Exponential("lambda_2", alpha) tau = pm.DiscreteUniform("tau", lower=0, upper=n_count_data) diff --git a/ExamplesFromChapters/Chapter3/ClusteringWithGaussians.py b/ExamplesFromChapters/Chapter3/ClusteringWithGaussians.py index 4cfac7db..647553f7 100644 --- a/ExamplesFromChapters/Chapter3/ClusteringWithGaussians.py +++ b/ExamplesFromChapters/Chapter3/ClusteringWithGaussians.py @@ -13,8 +13,8 @@ centers = pm.Normal("centers", [150, 150], [0.001, 0.001], size=2) """ -The below deterministic functions map a assingment, in this case 0 or 1, -to a set of parameters, located in the (1,2) arrays `taus` and `centers.` +The below deterministic functions map an assignment, in this case 0 or 1, +to a set of parameters, located in the (1, 2) arrays `taus` and `centers.` """