Skip to content

Commit

Permalink
how to call feature importances and contributions
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixWick committed Sep 21, 2023
1 parent dfed6a4 commit 817500b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/source/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,18 @@ CB_est = Pipeline([("binning", binner), ("CB", est)])
CB_est.fit(X_train, y)

yhat = CB_est.predict(X_test)
```
```

## Feature Importances
To get a dictionary with the relative importances of the different model
features in the training:
```python
CB_est.get_feature_importances()
```

## Individual Explainability
To get a dictionary with the contributions of the different model features to
the individual predictions of a given data set:
```python
CB_est.get_feature_contributions(X_test)
```

0 comments on commit 817500b

Please sign in to comment.