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])
Metadata
Release files for tice-ml 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tice_ml-1.0.5.tar.gz | 15.0 MB | Without provenance | Details for tice_ml-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tice_ml-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for tice_ml-1.0.5-py3-none-any.whl |
Total release size: 17.5 MB
Release files / tice_ml-1.0.5.tar.gz
| Download URL | tice_ml-1.0.5.tar.gz |
|---|---|
| Size | 15.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b2b41d004aa814a6ce5f3cc7756021188a7fa1842d7e2068a80d9a24a48da9f
|
|
BLAKE2b-256 checksum How to use checksums |
4ec1c246d628bf21dfab3aadbd17da7f324682cff215baaab497f34932a73b3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / tice_ml-1.0.5-py3-none-any.whl
| Download URL | tice_ml-1.0.5-py3-none-any.whl |
|---|---|
| Size | 2.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cdde711379b610f078d7bd93036eeb4340de598376e36b2ed9581c7ddccddaf0
|
|
BLAKE2b-256 checksum How to use checksums |
64f021d81fb20f2806df18d62f581984729dea1753670565099e5404edac9679
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Security for tice-ml 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.