Created using Colab

This commit is contained in:
udlbook
2025-08-26 07:09:18 -04:00
parent 69a2b00c9d
commit a644267053

View File

@@ -1,18 +1,16 @@
{
"cells": [
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"colab_type": "text",
"id": "view-in-github"
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/udlbook/udlbook/blob/main/Notebooks/Chap17/17_1_Latent_Variable_Models.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "t9vk9Elugvmi"
@@ -43,7 +41,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "IyVn-Gi-p7wf"
@@ -79,7 +76,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "KB9FU34onW1j"
@@ -145,7 +141,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "sQg2gKR5zMrF"
@@ -223,7 +218,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "0X4NwixzqxtZ"
@@ -254,7 +248,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "25xqXnmFo-PH"
@@ -281,7 +274,7 @@
"# We can't integrate this function in closed form\n",
"# So let's approximate it as a sum over the z values (z = np.arange(-3,3,0.01))\n",
"# You will need the functions get_likelihood() and get_prior()\n",
"# To make this a valid probability distribution, you need to divide\n",
"# To make this a valid probability distribution, you need to multiply\n",
"# By the z-increment (0.01)\n",
"# Replace this line\n",
"pr_x1_x2 = np.zeros_like(x1_mesh)\n",
@@ -292,7 +285,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "W264N7By_h9y"
@@ -320,7 +312,6 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {
"id": "D7N7oqLe-eJO"
@@ -388,9 +379,8 @@
],
"metadata": {
"colab": {
"authorship_tag": "ABX9TyOSEQVqxE5KrXmsZVh9M3gq",
"include_colab_link": true,
"provenance": []
"provenance": [],
"include_colab_link": true
},
"kernelspec": {
"display_name": "Python 3",