alkzar90 commited on
Commit
1f08540
1 Parent(s): 61a9e50

Add a radio wigdet for cost function

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -9,8 +9,12 @@ st.markdown('*\"Parametrised models are simply functions that depend on inputs a
9
 
10
  st.latex(r'''h(\boldsymbol x, \boldsymbol w)= \sum_{k=1}^{K}\boldsymbol w_{k} \phi_{k}(\boldsymbol x)''')
11
 
 
 
12
  number_of_observations = st.sidebar.slider('Number of observations', min_value=50, max_value=150, value=50)
13
  noise_standard_deviation = st.sidebar.slider('Standard deviation of the noise', min_value = 0.0, max_value=2.0, value=0.25)
 
 
14
 
15
  np.random.seed(2)
16
 
 
9
 
10
  st.latex(r'''h(\boldsymbol x, \boldsymbol w)= \sum_{k=1}^{K}\boldsymbol w_{k} \phi_{k}(\boldsymbol x)''')
11
 
12
+
13
+ # Sidebar inputs
14
  number_of_observations = st.sidebar.slider('Number of observations', min_value=50, max_value=150, value=50)
15
  noise_standard_deviation = st.sidebar.slider('Standard deviation of the noise', min_value = 0.0, max_value=2.0, value=0.25)
16
+ cost_function = st.sidebast.slider('What cost function you want to use for the fitting?',
17
+ ('RMSE-Loss', 'Huber-Loss'))
18
 
19
  np.random.seed(2)
20