Madhav commited on
Commit
7aeaef8
1 Parent(s): 8737d2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -38,6 +38,7 @@ def run_linear_regression(X, y, alpha_prior, beta_prior, sigma_prior):
38
  ax[1].set_title('beta')
39
  ax[2].hist(samples['sigma'], bins=20, density=True)
40
  ax[2].set_title('sigma')
 
41
  st.pyplot(fig)
42
  st.write("The mean of alpha is", np.mean(samples['alpha']))
43
  st.write("The mean of beta is", np.mean(samples['beta']))
 
38
  ax[1].set_title('beta')
39
  ax[2].hist(samples['sigma'], bins=20, density=True)
40
  ax[2].set_title('sigma')
41
+ st.write("The plot of posterior samples is shown below:")
42
  st.pyplot(fig)
43
  st.write("The mean of alpha is", np.mean(samples['alpha']))
44
  st.write("The mean of beta is", np.mean(samples['beta']))