Skip to content

Commit 12ddc72

Browse files
Merge pull request #70 from MAIF/feature/dependencies_removal
fix na in the dataset
2 parents 6fed91f + f284588 commit 12ddc72

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

eurybia/core/smartdrift.py

+1
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ def compile(
273273
dtypes = df_concat[varz].dtypes.map(str)
274274
cat_features = list(dtypes[dtypes.isin(["object"])].index)
275275
df_concat[cat_features] = df_concat[cat_features].fillna("NA")
276+
df_concat = df_concat.fillna(0)
276277
self._df_concat = df_concat
277278

278279
train, test = train_test_split(df_concat[varz + [self._datadrift_target]], test_size=0.25, random_state=42)

eurybia/style/colors.json

+29-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"rgb(0, 98, 128)",
2828
"rgb(0, 70, 92)"
2929
],
30+
"contrib_distribution": "rgb(211, 211, 211)",
3031
"datadrift_historical": "rgba(0,154,203,255)",
3132
"featimportance_colorscale": [
3233
[
@@ -62,14 +63,25 @@
6263
"rgb(0, 154, 203)"
6364
]
6465
],
66+
"feature_contributions_cumulative": [
67+
"rgb(255, 55, 55)",
68+
"rgb(255, 166, 0)",
69+
"rgb(255, 200, 100)",
70+
"rgb(55, 190, 255)",
71+
"rgb(0, 0, 255)",
72+
"rgb(0, 0, 0)"
73+
],
6574
"featureimp_bar": {
66-
"1": "rgba(0,154,203,255)",
67-
"2": "rgba(223, 103, 0, 0.8)"
75+
"1": "rgba(0, 154, 203, 1)",
76+
"2": "rgba(223, 103, 0, 0.8)",
77+
"3": "rgba(240, 195, 162, 0.8)",
78+
"4": "rgba(245, 122, 0, 0.8)"
6879
},
6980
"featureimp_groups": {
7081
"0": "rgb(10, 204, 143)",
7182
"1": "rgb(176, 140, 104)"
7283
},
84+
"featureimp_line": "rgba(52, 55, 54, 0.8)",
7385
"interaction_discrete": [
7486
"rgb(95, 70, 144)",
7587
"rgb(29, 105, 150)",
@@ -100,6 +112,21 @@
100112
"0": "rgba(52, 55, 54, 0.8)",
101113
"1": "rgba(52, 55, 54, 0.8)"
102114
},
115+
"prediction_plot": {
116+
"0": "rgba(0, 70, 92, 0.9)",
117+
"1": "rgba(168, 84, 0, 0.9)"
118+
},
119+
"report_confusion_matrix": [
120+
"rgb(255, 255, 255)",
121+
"rgb(244, 192, 0)",
122+
"rgb(255, 166, 17)"
123+
],
124+
"report_feature_distribution": {
125+
"pred": "rgba(230, 111, 0, 0.9)",
126+
"test": "rgba(230, 111, 0, 0.9)",
127+
"train": "rgba(0, 154, 203, 0.9)",
128+
"true": "rgba(0, 154, 203, 0.9)"
129+
},
103130
"scatter_line": {
104131
"horizontal": "rgba(17, 136, 240, 0.8)",
105132
"vertical": "rgba(240, 82, 65, 0.8)"

0 commit comments

Comments
 (0)