Spaces:
Runtime error
Runtime error
Fix error again
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ noise_standard_deviation = st.sidebar.slider('Standard deviation of the noise',
|
|
21 |
cost_function = st.sidebar.radio('What cost function you want to use for the fitting?', options=('RMSE-Loss', 'Huber-Loss'))
|
22 |
|
23 |
# Generate random data
|
24 |
-
X =
|
25 |
jax.random.uniform(key, shape=(number_of_observations,), minval=0., maxval=1.)))
|
26 |
w = jnp.array([3.0, -20.0, 32.0]) # coefficients
|
27 |
X = jnp.column_stack((X, X[:,1] ** 2)) # add x**2 column
|
|
|
21 |
cost_function = st.sidebar.radio('What cost function you want to use for the fitting?', options=('RMSE-Loss', 'Huber-Loss'))
|
22 |
|
23 |
# Generate random data
|
24 |
+
X = jnp.column_stack((jnp.ones(number_of_observations),
|
25 |
jax.random.uniform(key, shape=(number_of_observations,), minval=0., maxval=1.)))
|
26 |
w = jnp.array([3.0, -20.0, 32.0]) # coefficients
|
27 |
X = jnp.column_stack((X, X[:,1] ** 2)) # add x**2 column
|