Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def run_linear_regression(X, y, alpha_prior, beta_prior, sigma_prior):
|
|
38 |
for i in range(500):
|
39 |
alpha_i = samples['alpha'][i]
|
40 |
beta_i = samples['beta'][i]
|
41 |
-
ax.plot(X, alpha_i + beta_i * X, color=light_color)
|
42 |
ax.plot(X, np.mean(samples['alpha']) + np.mean(samples['beta']) * X, color='red', label='mean')
|
43 |
ax.legend(loc='upper left')
|
44 |
st.pyplot(fig)
|
|
|
38 |
for i in range(500):
|
39 |
alpha_i = samples['alpha'][i]
|
40 |
beta_i = samples['beta'][i]
|
41 |
+
ax.plot(X, alpha_i + beta_i * X, color=light_color,label='MCMC samples')
|
42 |
ax.plot(X, np.mean(samples['alpha']) + np.mean(samples['beta']) * X, color='red', label='mean')
|
43 |
ax.legend(loc='upper left')
|
44 |
st.pyplot(fig)
|