From 9b68e6a8e6652f2333ee3c18a168057882c3d265 Mon Sep 17 00:00:00 2001 From: udlbook <110402648+udlbook@users.noreply.github.com> Date: Thu, 18 Apr 2024 16:14:02 -0400 Subject: [PATCH] Created using Colab --- .../17_2_Reparameterization_Trick.ipynb | 32 +++++++------------ 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/Notebooks/Chap17/17_2_Reparameterization_Trick.ipynb b/Notebooks/Chap17/17_2_Reparameterization_Trick.ipynb index 588d5c4..da9cc22 100644 --- a/Notebooks/Chap17/17_2_Reparameterization_Trick.ipynb +++ b/Notebooks/Chap17/17_2_Reparameterization_Trick.ipynb @@ -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": [ "\"Open" ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": { "id": "t9vk9Elugvmi" @@ -40,7 +38,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": { "id": "paLz5RukZP1J" @@ -114,7 +111,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": { "id": "r5Hl2QkimWx9" @@ -139,13 +135,12 @@ "\n", "fig,ax = plt.subplots()\n", "ax.plot(phi_vals, expected_vals,'r-')\n", - "ax.set_xlabel('Parameter $\\phi$')\n", - "ax.set_ylabel('$\\mathbb{E}_{Pr(x|\\phi)}[f[x]]$')\n", + "ax.set_xlabel(r'Parameter $\\phi$')\n", + "ax.set_ylabel(r'$\\mathbb{E}_{Pr(x|\\phi)}[f[x]]$')\n", "plt.show()" ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": { "id": "zTCykVeWqj_O" @@ -253,13 +248,12 @@ "\n", "fig,ax = plt.subplots()\n", "ax.plot(phi_vals, deriv_vals,'r-')\n", - "ax.set_xlabel('Parameter $\\phi$')\n", - "ax.set_ylabel('$\\partial/\\partial\\phi\\mathbb{E}_{Pr(x|\\phi)}[f[x]]$')\n", + "ax.set_xlabel(r'Parameter $\\phi$')\n", + "ax.set_ylabel(r'$\\partial/\\partial\\phi\\mathbb{E}_{Pr(x|\\phi)}[f[x]]$')\n", "plt.show()" ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": { "id": "ASu4yKSwAEYI" @@ -269,7 +263,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": { "id": "xoFR1wifc8-b" @@ -366,13 +359,12 @@ "\n", "fig,ax = plt.subplots()\n", "ax.plot(phi_vals, deriv_vals,'r-')\n", - "ax.set_xlabel('Parameter $\\phi$')\n", - "ax.set_ylabel('$\\partial/\\partial\\phi\\mathbb{E}_{Pr(x|\\phi)}[f[x]]$')\n", + "ax.set_xlabel(r'Parameter $\\phi$')\n", + "ax.set_ylabel(r'$\\partial/\\partial\\phi\\mathbb{E}_{Pr(x|\\phi)}[f[x]]$')\n", "plt.show()" ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": { "id": "1TWBiUC7bQSw" @@ -403,7 +395,6 @@ ] }, { - "attachments": {}, "cell_type": "markdown", "metadata": { "id": "d-0tntSYdKPR" @@ -415,9 +406,8 @@ ], "metadata": { "colab": { - "authorship_tag": "ABX9TyOxO2/0DTH4n4zhC97qbagY", - "include_colab_link": true, - "provenance": [] + "provenance": [], + "include_colab_link": true }, "kernelspec": { "display_name": "Python 3", @@ -429,4 +419,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} +} \ No newline at end of file