You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
examples["Prediction after perturbation"] =perturbed_pred.prediction[~passed]
142
-
143
137
# Description
144
138
desc="When we perturb the content of feature “{feature}” with the transformation “{transformation_fn}” (see examples below), your model changes its prediction in about {fail_rate_percent}% of the cases. We expected the predictions not to be affected by this transformation."
145
139
140
+
failed_size= (~passed).sum()
141
+
slice_size=len(passed)
142
+
146
143
issue=Issue(
147
144
model,
148
145
dataset,
149
146
group=self._issue_group,
150
147
level=issue_level,
151
148
transformation_fn=transformation_fn,
152
149
description=desc,
150
+
features=[feature],
153
151
meta={
154
152
"feature": feature,
155
153
"domain": f"Feature `{feature}`",
156
-
"deviation": f"{round(fail_rate*100, 2)}% of tested samples changed prediction after perturbation",
154
+
"deviation": f"{failed_size}/{slice_size} tested samples ({round(fail_rate*100, 2)}%) changed prediction after perturbation",
0 commit comments