Spaces:
Runtime error
Runtime error
ziggycross
commited on
Commit
·
1170641
1
Parent(s):
2fe3889
Renamed anonymization options.
Browse files
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("
|
36 |
-
bin_size = st.slider("
|
37 |
-
|
|
|
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
|