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
Copy file name to clipboardExpand all lines: survlimepy/survlime_explainer.py
+22-4Lines changed: 22 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -394,6 +394,7 @@ def plot_montecarlo_weights(
394
394
scale_with_data_point: bool=False,
395
395
figure_path: Optional[str] =None,
396
396
with_colour: bool=True,
397
+
absolute_vals: bool=False,
397
398
) ->None:
398
399
"""Generates explanations for a prediction.
399
400
@@ -403,6 +404,7 @@ def plot_montecarlo_weights(
403
404
scale_with_data_point (bool): whether to perform the elementwise multiplication between the point to be explained and the coefficients.
404
405
figure_path (Optional[str]): path to save the figure.
405
406
with_colour (bool): boolean indicating whether the colour palette for positive coefficients is different than thecolour palette for negative coefficients. Default is set to True.
407
+
absolute_vals (bool): whether to plot the absolute values of the coefficients.
0 commit comments