Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullahau committed Feb 13, 2025
1 parent 8b8091a commit f9498b8
Show file tree
Hide file tree
Showing 3 changed files with 357,399 additions and 347,928 deletions.
6 changes: 3 additions & 3 deletions 03 - Geocentric Models.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -229516,7 +229516,7 @@
},
{
"cell_type": "code",
"execution_count": 139,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -229548,8 +229548,8 @@
" axs[1].plot(data.year, B_mat * wp)\n",
" axs[1].set(xlabel='Year', ylabel='Basis * Weight') \n",
" \n",
" az.plot_hdi(d2.year, trace_quap.posterior['mu'], smooth=False, color='k', ax=axs[2])\n",
" axs[2].plot(d2.year, d2.doy, 'o', color='pink', alpha=0.6)\n",
" az.plot_hdi(data.year, trace_quap.posterior['mu'], smooth=False, color='k', ax=axs[2])\n",
" axs[2].plot(data.year, data.doy, 'o', color='pink', alpha=0.6)\n",
" axs[2].set(xlabel='Year', ylabel='Day in Year')"
]
},
Expand Down
10 changes: 5 additions & 5 deletions 03b - Geocentric Models.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -80038,7 +80038,7 @@
},
{
"cell_type": "code",
"execution_count": 41,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -82048,16 +82048,16 @@
"fig, ax = plt.subplots()\n",
"\n",
"hdi_1 = az.plot_hdi(weight_seq, pred.predictions[\"height\"], \n",
" hdi_prob=0.89, smooth=False) \n",
" hdi_prob=0.89, smooth=False, color='C1') \n",
"\n",
"hdi_2 = az.plot_hdi(weight_seq, pred.predictions[\"mu\"], \n",
" hdi_prob=0.89, smooth=False) \n",
" hdi_prob=0.89, smooth=False, color='green') \n",
"\n",
"mean_line, = ax.plot(weight_seq, pred.predictions[\"mu\"].mean(axis=1)[0], 'k', label='Mean')\n",
"obs_data, = ax.plot(d2.weight, d2.height, 'o', fillstyle='none', label='Observed Data', color='k')\n",
"\n",
"hdi_patch1 = plt.Line2D([0], [1], color='C0', lw=3, label=\"Posterior Predictive Sample\")\n",
"hdi_patch2 = plt.Line2D([0], [1], color='C1', lw=3, label=\"Uncertainty in Mean\")\n",
"hdi_patch1 = plt.Line2D([0], [1], color='C1', lw=3, label=\"Posterior Predictive Sample\")\n",
"hdi_patch2 = plt.Line2D([0], [1], color='green', lw=3, label=\"Uncertainty in Mean\")\n",
"\n",
"ax.set(xlabel=\"Weight (kg)\",\n",
" ylabel=\"Height (cm)\",\n",
Expand Down
Loading

0 comments on commit f9498b8

Please sign in to comment.