From ef5e3c222e57a5bf338703c48e1898810c91fae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20David=20Baena?= Date: Sun, 28 Apr 2019 18:28:06 -0700 Subject: [PATCH 1/2] Fix typo related to format when showing results for Bayesian inference - Updated print line when showing Bayesian inference results on diabetes example --- 1.5-spam-classifier/Bayesian_Inference.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1.5-spam-classifier/Bayesian_Inference.ipynb b/1.5-spam-classifier/Bayesian_Inference.ipynb index fbf288f..d0a5204 100644 --- a/1.5-spam-classifier/Bayesian_Inference.ipynb +++ b/1.5-spam-classifier/Bayesian_Inference.ipynb @@ -722,7 +722,7 @@ "\n", "# P(Pos)\n", "p_pos = # TODO\n", - "print('The probability of getting a positive test result P(Pos) is: {}',format(p_pos))" + "print('The probability of getting a positive test result P(Pos) is: {}'.format(p_pos))" ] }, { From 163ae0a5c2be33d41965ef136a64d46b020119e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20David=20Baena?= Date: Sun, 28 Apr 2019 18:31:32 -0700 Subject: [PATCH 2/2] Updated solution notebook for Bayesian_inference - Format results fixes updates on solution notebook --- 1.5-spam-classifier/Bayesian_Inference_solution.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1.5-spam-classifier/Bayesian_Inference_solution.ipynb b/1.5-spam-classifier/Bayesian_Inference_solution.ipynb index fef6a52..e5e644b 100644 --- a/1.5-spam-classifier/Bayesian_Inference_solution.ipynb +++ b/1.5-spam-classifier/Bayesian_Inference_solution.ipynb @@ -1008,7 +1008,7 @@ "name": "stdout", "output_type": "stream", "text": [ - "The probability of getting a positive test result P(Pos) is: {} 0.10799999999999998\n" + "The probability of getting a positive test result P(Pos) is: 0.10799999999999998\n" ] } ],