alkzar90 commited on
Commit
2667960
1 Parent(s): e9098e7

Fix error again

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = np.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
 
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