Skip to content

Feature importance #3862

Closed Answered by arnavgarg1
ImranA10 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @ImranA10, sorry for the late response. We do support explanations, unfortunately however, this hasn't been documented in Ludwig docs.

The best starting point is this part of the repository: https://github.com/ludwig-ai/ludwig/tree/master/ludwig/explain

Depending on your model, you can use IntegratedGradients (for ECD architecture) or the GBM explainer for tree-based models.

For The IntegratedGradients explainer, you can do something like this:

from ludwig.explain.captum import IntegratedGradientsExplainer

# model: trained LudwigModel
# inputs_df: pd.DataFrame
# sample_df: pd.DataFrame
# target: str
explainer = IntegratedGradientsExplainer(model, inputs_df, sample_df, target)
explanat…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mhabedank
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants