Created using Colaboratory
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
"metadata": {
|
"metadata": {
|
||||||
"colab": {
|
"colab": {
|
||||||
"provenance": [],
|
"provenance": [],
|
||||||
"authorship_tag": "ABX9TyOsg2s5izHB6NECgiGlYIBb",
|
"authorship_tag": "ABX9TyOJeBMhN9fXO8UepZ4+Pbg6",
|
||||||
"include_colab_link": true
|
"include_colab_link": true
|
||||||
},
|
},
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
@@ -306,7 +306,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"# Return the negative log likelihood of the data under the model\n",
|
"# Return the negative log likelihood of the data under the model\n",
|
||||||
"def compute_negative_log_likelihood(y_train, mu, sigma):\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",
|
" # In other words, compute minus one times the sum of the log probabilities\n",
|
||||||
" # Equation 5.4 in the notes\n",
|
" # Equation 5.4 in the notes\n",
|
||||||
" # You will need np.sum(), np.log()\n",
|
" # You will need np.sum(), np.log()\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user