Update my_pages/rashomon_effect.py
Browse files
my_pages/rashomon_effect.py
CHANGED
|
@@ -25,9 +25,9 @@ def render():
|
|
| 25 |
# credit = np.random.normal(50, 15, n_points)
|
| 26 |
# labels = (income + credit > 100).astype(int) # 1 = paid back, 0 = default
|
| 27 |
|
| 28 |
-
income = [80, 85, 97, 91, 78, 102, 84, 88, 45, 51, 34, 47, 38, 39, 97, 91, 38, 32]
|
| 29 |
-
credit = [800, 805, 970, 910, 708, 1020, 804, 880, 450, 501, 304, 470, 380, 309, 370, 301, 1080, 902]
|
| 30 |
-
labels = [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1]
|
| 31 |
|
| 32 |
colors = ['green' if label == 1 else 'red' for label in labels]
|
| 33 |
|
|
|
|
| 25 |
# credit = np.random.normal(50, 15, n_points)
|
| 26 |
# labels = (income + credit > 100).astype(int) # 1 = paid back, 0 = default
|
| 27 |
|
| 28 |
+
income = np.array([80, 85, 97, 91, 78, 102, 84, 88, 45, 51, 34, 47, 38, 39, 97, 91, 38, 32])
|
| 29 |
+
credit = np.array([800, 805, 970, 910, 708, 1020, 804, 880, 450, 501, 304, 470, 380, 309, 370, 301, 1080, 902])
|
| 30 |
+
labels = np.array([1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1])
|
| 31 |
|
| 32 |
colors = ['green' if label == 1 else 'red' for label in labels]
|
| 33 |
|