Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions captum/attr/_core/lime.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ def __init__(
interpretable_model (optional, Model): Model object to train
interpretable model.

This argument is optional and defaults to SkLearnLasso(alpha=1.0),
This argument is optional and defaults to SkLearnLasso(alpha=0.01),
which is a wrapper around the Lasso linear model in SkLearn.
This requires having sklearn version >= 0.23 available.

Expand Down Expand Up @@ -805,7 +805,7 @@ def __init__(

"""
if interpretable_model is None:
interpretable_model = SkLearnLasso(alpha=1.0)
interpretable_model = SkLearnLasso(alpha=0.01)

if similarity_func is None:
similarity_func = get_exp_kernel_similarity_function()
Expand Down
1 change: 1 addition & 0 deletions tests/attr/test_lime.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ def _lime_test_assert(
lime = Lime(
model,
similarity_func=get_exp_kernel_similarity_function("cosine", 10.0),
interpretable_model=SkLearnLasso(alpha=1.0),
)
with self.assertWarns(DeprecationWarning):
attributions = lime.attribute(
Expand Down