Tabular Models
For tabular models, Fiddler’s Global Explanation tool shows the impact/importance of the features in the model. Two global explanation methods are available:- Feature importance — Gives the average change in loss when a feature is randomly ablated.
- Feature impact — Gives the average absolute change in the model prediction when a feature is randomly ablated (removed).
- Custom Feature Impact
-
Overview
- The Custom Feature Impact feature empowers you to provide your feature impact scores for your models, leveraging domain-specific knowledge or external data to inform feature importance. This feature enables you to upload custom feature impact data without requiring the corresponding model artifact.
-
How to Use
- Prepare Your Data
- Gather feature names and corresponding impact scores for your model.
- Ensure impact scores are numeric values; negative values indicate inverse relationships.
- Upload Feature Impact Data
- Use the provided API endpoint to upload your data.
- Required parameters:
- Model UUID: Unique identifier of your model.
- Feature Names: List of feature names.
- Impact Scores: List of corresponding impact scores.
- View Updated Model Information
- After successful upload, updated feature impact data will be reflected in:
- Model details page
- Charts page
- Explain page
- Visualize feature impact scores in charts and explanations.
- After successful upload, updated feature impact data will be reflected in:
- Prepare Your Data
-
Important Notes
- Error handling: API returns detailed error messages to help resolve issues.
- Update existing feature impact data by uploading new data for the same model.
- If you upload feature impact data for a model with an existing artifact, the artifact will be updated.
- Missing feature impact data may display a tooltip or message; upload data manually or compute using other tools.
-
Methods:
upload_feature_impact: Accepts a dictionary of feature impact (key-value pairs of features and their impact) and an update flag (True or False).
-
Parameters:
feature_impact_map: Dictionary (key-value pairs of features and their impact)update: Boolean (true or false)
-
Sample Usage :
-
Overview
- Custom Feature Impact
Language (NLP) Models
For language models, Fiddler’s Global Explanation performs ablation feature impact on a collection of text samples, determining which words have the most impact on the prediction.📘 Info For speed performance, Fiddler uses a random corpus of 200 documents from the dataset. When using theget_feature_importancefunction from the Fiddler API client, the argumentnum_refscan be changed to use a bigger corpus of texts.