An open API service indexing awesome lists of open source software.

https://github.com/britojr/diffi

Interpretation of Isolation Forests
https://github.com/britojr/diffi

anomaly-detection diffi explainability interpretability machine-learning

Last synced: about 1 month ago
JSON representation

Interpretation of Isolation Forests

Awesome Lists containing this project

README

          

# diffi

This is an unofficial python implementation of the **DIFFI (Depth-based Isolation Forest Feature Importance)** Algorithm proposed by [[1]](#ref1).
A model-based approach to assess global interpretation, in terms of feature importance, of an Isolation Forest.

This implementation assumes that the model used is an instance of [scikit-learn's Isolation Forest](https://scikit-learn.org/stable/modules/generated/sklearn.ensemble.IsolationForest.html#sklearn.ensemble.IsolationForest).

## Usage

```python
from sklearn.ensemble import IsolationForest
from diffi.diffi import diffi_score

clf = IsolationForest()
clf.fit(X)

feature_importance = diffi_score(clf, X)
```

## References

Carletti, Mattia, Chiara Masiero, Alessandro Beghi, and Gian Antonio Susto. ["Explainable machine learning in industry 4.0: evaluating feature importance in anomaly detection to enable root cause analysis."](https://ieeexplore.ieee.org/abstract/document/8913901) In 2019 IEEE International Conference on Systems, Man and Cybernetics (SMC), pp. 21-26. IEEE, 2019.