Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,11 @@ import matplotlib.pyplot as plt
|
|
4 |
import numpy as np
|
5 |
import matplotlib.pyplot as plt
|
6 |
import tensorflow as tf
|
|
|
7 |
import tensorflow_probability as tfp
|
8 |
import pandas as pd
|
9 |
tfd = tfp.distributions
|
|
|
10 |
|
11 |
st.title("1 dimensional normal distribution")
|
12 |
mean = st.slider('Mean', -5, 5, 0)
|
@@ -14,8 +16,13 @@ std = st.slider('Scale', 0, 5, 1)
|
|
14 |
|
15 |
p = tfd.Normal(2, 1)
|
16 |
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
-
st.latex(
|
19 |
|
20 |
|
21 |
q = tfd.Normal(mean, std)
|
|
|
4 |
import numpy as np
|
5 |
import matplotlib.pyplot as plt
|
6 |
import tensorflow as tf
|
7 |
+
import seaborn as sns
|
8 |
import tensorflow_probability as tfp
|
9 |
import pandas as pd
|
10 |
tfd = tfp.distributions
|
11 |
+
tfl = tfp.layers
|
12 |
|
13 |
st.title("1 dimensional normal distribution")
|
14 |
mean = st.slider('Mean', -5, 5, 0)
|
|
|
16 |
|
17 |
p = tfd.Normal(2, 1)
|
18 |
|
19 |
+
z = f"""\\begin{{array}}{{cc}}
|
20 |
+
\mu & {mean} \\\\
|
21 |
+
\sigma & {std}
|
22 |
+
\\end{{array}}
|
23 |
+
"""
|
24 |
|
25 |
+
st.latex(z)
|
26 |
|
27 |
|
28 |
q = tfd.Normal(mean, std)
|