-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Insights module and SHAPInsight (#391)
Adds the `insights` subpackage with `SHAPInsight` as first content
- Loading branch information
Showing
15 changed files
with
745 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"""Optional import for the insights subpackage.""" | ||
|
||
from baybe.exceptions import OptionalImportError | ||
|
||
try: | ||
import shap | ||
except ModuleNotFoundError as ex: | ||
raise OptionalImportError( | ||
"Explainer functionality is unavailable because 'insights' is not installed." | ||
" Consider installing BayBE with 'insights' dependency, e.g. via " | ||
"`pip install baybe[insights]`." | ||
) from ex | ||
|
||
__all__ = [ | ||
"shap", | ||
] |
Oops, something went wrong.