Update my_pages/rashomon_effect.py
Browse files
my_pages/rashomon_effect.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import matplotlib.pyplot as plt
|
| 3 |
import numpy as np
|
| 4 |
-
from utils import add_navigation, add_instruction_text
|
| 5 |
|
| 6 |
plt.style.use('dark_background')
|
| 7 |
|
|
@@ -66,10 +66,7 @@ def render():
|
|
| 66 |
Multiple models achieving similar accuracy, i.e., multiple interpretations of the data, is known as the Rashomon effect.
|
| 67 |
We call the models below part of a 'Rashomon set'.
|
| 68 |
"""
|
| 69 |
-
|
| 70 |
-
f"<div style='text-align:center; color:#c0392b; font-size:20px; margin:0 0;'>{rashomon_set_message}</div>",
|
| 71 |
-
unsafe_allow_html=True,
|
| 72 |
-
)
|
| 73 |
|
| 74 |
#### Plot three graphs to represent three models
|
| 75 |
graph_selected, highlight_point = None, None
|
|
@@ -119,7 +116,4 @@ def render():
|
|
| 119 |
These conflicting predictions is multiplicity.<br><br>
|
| 120 |
<b>Clearly, the choice of model directly impacts individuals!</b>
|
| 121 |
"""
|
| 122 |
-
|
| 123 |
-
f"<div style='text-align:center; color:#c0392b; font-size:20px; margin:0;'>{multiplicity_message}</div>",
|
| 124 |
-
unsafe_allow_html=True,
|
| 125 |
-
)
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import matplotlib.pyplot as plt
|
| 3 |
import numpy as np
|
| 4 |
+
from utils import add_navigation, add_instruction_text, add_red_text
|
| 5 |
|
| 6 |
plt.style.use('dark_background')
|
| 7 |
|
|
|
|
| 66 |
Multiple models achieving similar accuracy, i.e., multiple interpretations of the data, is known as the Rashomon effect.
|
| 67 |
We call the models below part of a 'Rashomon set'.
|
| 68 |
"""
|
| 69 |
+
add_red_text(rashomon_set_message)
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
#### Plot three graphs to represent three models
|
| 72 |
graph_selected, highlight_point = None, None
|
|
|
|
| 116 |
These conflicting predictions is multiplicity.<br><br>
|
| 117 |
<b>Clearly, the choice of model directly impacts individuals!</b>
|
| 118 |
"""
|
| 119 |
+
add_red_text(multiplicity_message)
|
|
|
|
|
|
|
|
|