Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -49,15 +49,12 @@ def run_linear_regression(X, y, alpha_prior, beta_prior, sigma_prior):
|
|
49 |
# User Input
|
50 |
st.write("# Bayesian Linear Regression")
|
51 |
|
52 |
-
st.
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
\end{aligned}''') + """
|
59 |
-
</div>
|
60 |
-
""", unsafe_allow_html=True)
|
61 |
|
62 |
|
63 |
alpha_prior_option = st.selectbox("Choose an option for alpha prior:", ["Normal", "Laplace", "Cauchy"])
|
|
|
49 |
# User Input
|
50 |
st.write("# Bayesian Linear Regression")
|
51 |
|
52 |
+
st.latex(r'''\begin{aligned}
|
53 |
+
\textbf{Prior:} \hspace{0.5 cm} p(\alpha) &= N(\mu_0, \Sigma_0),\hspace{0.2 cm} p(\beta) = N(\mu_1, \Sigma_1),\hspace{0.2 cm} p(\sigma) = N(\mu_2, \Sigma_2)\\
|
54 |
+
\textbf{Likelihood:} \hspace{0.5 cm} p(y | X, \beta,\alpha, \sigma) &= N(X\beta + \alpha, \sigma)\\
|
55 |
+
\textbf{Posterior:} \hspace{0.5 cm} p(\alpha | X, y) &\propto p(y | X, \beta, \sigma) p(\alpha),\hspace{0.2 cm} p(\beta | X, y) \propto p(y | X, \alpha, \sigma) p(\beta),\hspace{0.2 cm} p(\sigma | X, y) \propto p(y | X, \beta, \alpha) p(\sigma)
|
56 |
+
\end{aligned}''')
|
57 |
+
|
|
|
|
|
|
|
58 |
|
59 |
|
60 |
alpha_prior_option = st.selectbox("Choose an option for alpha prior:", ["Normal", "Laplace", "Cauchy"])
|