Spaces:
Running
Running
Update pages/2_LinearRegression.py
Browse files
pages/2_LinearRegression.py
CHANGED
@@ -31,7 +31,7 @@ noise_level = st.sidebar.slider('Noise Level', 0.0, 1.0, 0.1, step=0.01)
|
|
31 |
num_points = st.sidebar.slider('Number of Data Points', 10, 100, 50, step=5)
|
32 |
|
33 |
# Generate data
|
34 |
-
np.random.seed(
|
35 |
x = np.linspace(0, 10, num_points).reshape(-1, 1).astype(np.float32)
|
36 |
with torch.no_grad():
|
37 |
x_tensor = torch.tensor(x)
|
|
|
31 |
num_points = st.sidebar.slider('Number of Data Points', 10, 100, 50, step=5)
|
32 |
|
33 |
# Generate data
|
34 |
+
np.random.seed(59)
|
35 |
x = np.linspace(0, 10, num_points).reshape(-1, 1).astype(np.float32)
|
36 |
with torch.no_grad():
|
37 |
x_tensor = torch.tensor(x)
|