Spaces:
Runtime error
Runtime error
Fix code
Browse files
app.py
CHANGED
@@ -6,12 +6,12 @@ number_of_observations = st.slider('Number of observations', min_value=50, max_v
|
|
6 |
X = np.column_stack((np.ones(number_of_observations),
|
7 |
np.random.random(number_of_observations))
|
8 |
|
9 |
-
|
10 |
-
ax =
|
11 |
ax.set_xlim((0,1))
|
12 |
ax.set_ylim((-5,20))
|
13 |
-
|
14 |
-
line_thickness = 2
|
15 |
-
line, = ax.plot([], [], lw=line_thickness)
|
16 |
st.pyplot(fig)
|
17 |
st.write(X[:5, :])
|
|
|
6 |
X = np.column_stack((np.ones(number_of_observations),
|
7 |
np.random.random(number_of_observations))
|
8 |
|
9 |
+
|
10 |
+
fig, ax = plt.subplots()
|
11 |
ax.set_xlim((0,1))
|
12 |
ax.set_ylim((-5,20))
|
13 |
+
ax.scatter(X[:,1], y, c='r', edgecolors='#fda172')
|
14 |
+
#line_thickness = 2
|
15 |
+
#line, = ax.plot([], [], lw=line_thickness)
|
16 |
st.pyplot(fig)
|
17 |
st.write(X[:5, :])
|