azizalto commited on
Commit
c5d63f2
1 Parent(s): c5301d0
ml_algorithms/linear_regression_gradient_descent.py CHANGED
@@ -148,7 +148,7 @@ def interactive_run():
148
  theta = [0, 0] # initial values
149
  model = LinearRegressionGradient(theta)
150
  n = st.slider("Number of samples", min_value=10, max_value=200, step=10)
151
- if st.button("generate new data"):
152
  X, y = random_data(n=n)
153
  mark("_Input_")
154
  mark(f"_X_ = {X}")
 
148
  theta = [0, 0] # initial values
149
  model = LinearRegressionGradient(theta)
150
  n = st.slider("Number of samples", min_value=10, max_value=200, step=10)
151
+ if st.button("generate new data and solve"):
152
  X, y = random_data(n=n)
153
  mark("_Input_")
154
  mark(f"_X_ = {X}")