singhk28 commited on
Commit
e8a09be
1 Parent(s): 47d6d33

Bug Fix: obtaining desired value.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,7 +41,7 @@ if mode_type == 'Parameter Search (find combination of parameters to get a desir
41
  st.markdown(f'<h3 style="color:#000000;font-size:20px;">{"4) Type of parameter search"}</h3>', unsafe_allow_html=True)
42
  opt_type = st.selectbox("What do you want to do with the output?", ('Maximize it', 'Minimize it', 'Obtain a desired value'))
43
  if mod_type == 'regression':
44
- if opt_type == 'Move towards a desired value':
45
  desired_value = float(st.number_input("Enter the desired value for the target variable."))
46
  else:
47
  desired_value = st.text_input("Enter the desired target parameter value. This field is case sensitive. (i.e., capital letters must match.)", key="DV for Classifier")
@@ -233,4 +233,4 @@ if uploaded_file:
233
  if mod_type == "classifier":
234
  st.write('Classifier is not currently implemented.')
235
 
236
- st.markdown("![visitor badge](https://visitor-badge.glitch.me/badge?page_id=singhk28_nocodeml)")
 
41
  st.markdown(f'<h3 style="color:#000000;font-size:20px;">{"4) Type of parameter search"}</h3>', unsafe_allow_html=True)
42
  opt_type = st.selectbox("What do you want to do with the output?", ('Maximize it', 'Minimize it', 'Obtain a desired value'))
43
  if mod_type == 'regression':
44
+ if opt_type == 'Obtain a desired value':
45
  desired_value = float(st.number_input("Enter the desired value for the target variable."))
46
  else:
47
  desired_value = st.text_input("Enter the desired target parameter value. This field is case sensitive. (i.e., capital letters must match.)", key="DV for Classifier")
 
233
  if mod_type == "classifier":
234
  st.write('Classifier is not currently implemented.')
235
 
236
+ st.markdown("![visitor badge](https://visitor-badge.glitch.me/badge?page_id=singhk28_nocodeml)")