Skip to content

Commit

Permalink
Created using Colaboratory
Browse files Browse the repository at this point in the history
  • Loading branch information
udlbook committed Oct 25, 2022
1 parent 015a34e commit b234493
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CM20315_Loss_III.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyN47tCA/ntPUBcb99d7AzCz",
"collapsed_sections": [],
"authorship_tag": "ABX9TyNl/KjOshENtrwKt/IdwaUO",
"include_colab_link": true
},
"kernelspec": {
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit b234493

Please sign in to comment.