Created using Colaboratory

This commit is contained in:
udlbook
2023-10-26 17:32:25 +01:00
parent 5db114e492
commit 4d0825ef42

View File

@@ -4,7 +4,7 @@
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyOsg2s5izHB6NECgiGlYIBb",
"authorship_tag": "ABX9TyOJeBMhN9fXO8UepZ4+Pbg6",
"include_colab_link": true
},
"kernelspec": {
@@ -306,7 +306,7 @@
"source": [
"# Return the negative log likelihood of the data under the model\n",
"def compute_negative_log_likelihood(y_train, mu, sigma):\n",
" # TODO -- compute the negative log likelihood of the data without using aproduct\n",
" # TODO -- compute the negative log likelihood of the data without using a product\n",
" # In other words, compute minus one times the sum of the log probabilities\n",
" # Equation 5.4 in the notes\n",
" # You will need np.sum(), np.log()\n",