ziggycross commited on
Commit
1170641
1 Parent(s): 2fe3889

Renamed anonymization options.

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -32,9 +32,10 @@ else:
32
  # Options for data optimization
33
  with st.container() as anonymizing_options:
34
  st.markdown("### Anonymizing options:")
35
- max_categorical_size = st.slider("Maximum number of categories", min_value=2, max_value=200, value=50, step=1)
36
- bin_size = st.slider("Target bin size", min_value=2, max_value=200, value=20, step=1)
37
- sensitivity_minimum = st.number_input("Minimum count", min_value=2, max_value=10, value=2, step=1)
 
38
 
39
 
40
  ### DATA PREVIEW AND TRANSFORM
 
32
  # Options for data optimization
33
  with st.container() as anonymizing_options:
34
  st.markdown("### Anonymizing options:")
35
+ max_categorical_size = st.slider("Categorical Variable Threshold", min_value=2, max_value=200, value=50, step=1)
36
+ bin_size = st.slider("Bin Size", min_value=2, max_value=200, value=20, step=1)
37
+ redaction_selection = st.selectbox("Redaction strength", ["Low", "Medium", "High", "Extreme"])
38
+ sensitivity_minimum = {"Low": 2, "Medium": 4, "High": 6, "Extreme": 12}[redaction_selection]
39
 
40
 
41
  ### DATA PREVIEW AND TRANSFORM