Update my_pages/rashomon_effect.py
Browse files- my_pages/rashomon_effect.py +11 -5
my_pages/rashomon_effect.py
CHANGED
|
@@ -56,8 +56,11 @@ def render():
|
|
| 56 |
)
|
| 57 |
|
| 58 |
#### Rashomon Set Definition
|
| 59 |
-
rashomon_set_message =
|
| 60 |
-
|
|
|
|
|
|
|
|
|
|
| 61 |
st.markdown(
|
| 62 |
f"<div style='text-align:center; color:#c0392b; font-size:20px; font-weight:bold; margin:14px 0;'>{rashomon_set_message}</div>",
|
| 63 |
unsafe_allow_html=True,
|
|
@@ -112,9 +115,12 @@ def render():
|
|
| 112 |
|
| 113 |
#### Multiplicity Definition
|
| 114 |
if "graph_selected" in st.session_state:
|
| 115 |
-
multiplicity_message =
|
| 116 |
-
|
| 117 |
-
|
|
|
|
|
|
|
|
|
|
| 118 |
st.markdown(
|
| 119 |
f"<div style='text-align:center; color:#c0392b; font-size:20px; margin:14px 0;'>{multiplicity_message}</div>",
|
| 120 |
unsafe_allow_html=True,
|
|
|
|
| 56 |
)
|
| 57 |
|
| 58 |
#### Rashomon Set Definition
|
| 59 |
+
rashomon_set_message =
|
| 60 |
+
"""
|
| 61 |
+
The existence of multiple models that achieve similar accuracy, i.e., multiple interpretations of the data, is known as the Rashomon effect.
|
| 62 |
+
We call the models below part of a 'Rashomon set'.
|
| 63 |
+
"""
|
| 64 |
st.markdown(
|
| 65 |
f"<div style='text-align:center; color:#c0392b; font-size:20px; font-weight:bold; margin:14px 0;'>{rashomon_set_message}</div>",
|
| 66 |
unsafe_allow_html=True,
|
|
|
|
| 115 |
|
| 116 |
#### Multiplicity Definition
|
| 117 |
if "graph_selected" in st.session_state:
|
| 118 |
+
multiplicity_message =
|
| 119 |
+
"""
|
| 120 |
+
Depending on the model choice, notice the highlighted individual who doesn't get loan, but would have gotten loan under a different model.
|
| 121 |
+
These conflicting predictions are called multiplicity.<br><br>
|
| 122 |
+
Clearly, the choice of model directly impacts individuals!
|
| 123 |
+
"""
|
| 124 |
st.markdown(
|
| 125 |
f"<div style='text-align:center; color:#c0392b; font-size:20px; margin:14px 0;'>{multiplicity_message}</div>",
|
| 126 |
unsafe_allow_html=True,
|