Model agnostic Time-Series Counterfactual Engine.
Project description
TiCE
TiCE is an extension of the DiCE <https://github.com/interpretml/DiCE>_ (Diverse Counterfactual Explanations) library, designed to provide counterfactual explanations with additional functionality and improvements.
This library was developed as part of my master's thesis at TU Eindhoven while working at ASML.
This package is especially tailored for regression and time series applications, while maintaining compatibility with DiCE's original design principles.
Acknowledgement
This work builds upon the excellent DiCE <https://github.com/interpretml/DiCE>_ library created by the team at InterpretML.
I acknowledge and thank them for their contributions to the field of explainable AI.
The improvements in TiCE extend DiCE's capabilities while staying true to its core mission: generating actionable and diverse counterfactual explanations.
Improvements in TiCE
Compared to the original DiCE implementation, TiCE introduces the following enhancements:
- Support for regression tasks: Generate counterfactuals not only for classification but also for regression settings with a continious target variable.
- Time series compatibility: Adapted internal structures to handle sequential data, enabling counterfactual explanations for time-dependent models.
- Improved data interface: More flexible handling of continuous, categorical, and temporal features in heterogeneous datasets.
- Advanced Visualization: Dedicated visualization utilities tailored to time-series explanations are added. These visualization tools transform hundreds of numeric scores into digestible figures, making it far easier for domain experts and stakeholders to interpret model explanations and counterfactual suggestion
Installation
You can install TiCE directly from PyPI::
pip install tice
Usage
The usage of TiCE follows the same structure as DiCE with minor adjustments::
import TiCE
tice_exp = (model, data_interface) counterfactuals = tice_exp.generate_counterfactuals(query_instance, total_CFs=5, desired_range=[value_min, value_max])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tice_ml-1.0.5.tar.gz.
File metadata
- Download URL: tice_ml-1.0.5.tar.gz
- Upload date:
- Size: 15.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b2b41d004aa814a6ce5f3cc7756021188a7fa1842d7e2068a80d9a24a48da9f
|
|
| MD5 |
42afb3702f93ed95e80446bf2f197622
|
|
| BLAKE2b-256 |
4ec1c246d628bf21dfab3aadbd17da7f324682cff215baaab497f34932a73b3f
|
File details
Details for the file tice_ml-1.0.5-py3-none-any.whl.
File metadata
- Download URL: tice_ml-1.0.5-py3-none-any.whl
- Upload date:
- Size: 2.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdde711379b610f078d7bd93036eeb4340de598376e36b2ed9581c7ddccddaf0
|
|
| MD5 |
32c7607138baab547d63edf39ffbb88c
|
|
| BLAKE2b-256 |
64f021d81fb20f2806df18d62f581984729dea1753670565099e5404edac9679
|