From b23449306e5c58feec7644a9947829264bc8fa66 Mon Sep 17 00:00:00 2001 From: udlbook <110402648+udlbook@users.noreply.github.com> Date: Tue, 25 Oct 2022 11:46:59 +0100 Subject: [PATCH] Created using Colaboratory --- CM20315_Loss_III.ipynb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CM20315_Loss_III.ipynb b/CM20315_Loss_III.ipynb index f3a936ec..985ed72c 100644 --- a/CM20315_Loss_III.ipynb +++ b/CM20315_Loss_III.ipynb @@ -4,7 +4,8 @@ "metadata": { "colab": { "provenance": [], - "authorship_tag": "ABX9TyN47tCA/ntPUBcb99d7AzCz", + "collapsed_sections": [], + "authorship_tag": "ABX9TyNl/KjOshENtrwKt/IdwaUO", "include_colab_link": true }, "kernelspec": { @@ -269,9 +270,9 @@ "source": [ "# Return the likelihood of all of the data under the model\n", "def compute_likelihood(y_train, lambda_param):\n", - " # TODO -- compute the likelihood of the data -- the product of the normal probabilities for each data point\n", + " # TODO -- compute the likelihood of the data -- the product of the categorical probabilities for each data point\n", " # Top line of equation 5.3 in the notes\n", - " # You will need np.prod() and the normal_distribution function you used above\n", + " # You will need np.prod() and the categorical_distribution function you used above\n", " # Replace the line below\n", " likelihood = 0\n", " return likelihood"