Skip to main content

Sliceline is a Python library for fast slice finding for Machine Learning model debugging.

It is an implementation of SliceLine: Fast, Linear-Algebra-based Slice Finding for ML Model Debugging, from Svetlana Sagadeeva and Matthias Boehm of Graz University of Technology.

👉 Getting started

Given an input dataset X and a model error vector errors, SliceLine finds the top slices in X that identify where a ML model performs significantly worse.

You can use sliceline as follows:

from sliceline.slicefinder import Slicefinder

slice_finder = Slicefinder()

slice_finder.fit(X, errors)

print(slice_finder.top_slices_)

X_trans = slice_finder.transform(X)

We invite you to check the demo notebooks for a more thorough tutorial:

  1. Implementing Sliceline on Titanic dataset

  2. Implementing Sliceline on California housing dataset

🛠 Installation

Sliceline is intended to work with Python 3.7 or above. Installation can be done with pip:

pip install sliceline

There are wheels available for Linux, MacOS, and Windows, which means that you most probably won’t have to build Sliceline from source.

You can install the latest development version from GitHub as so:

pip install git+https://github.com/DataDome/sliceline --upgrade

Or, through SSH:

pip install git+ssh://git@github.com/datadome/sliceline.git --upgrade

👐 Contributing

Feel free to contribute in any way you like, we’re always open to new ideas and approaches.

  • Open a discussion if you have any question or enquiry whatsoever. It’s more useful to ask your question in public rather than sending us a private email. It’s also encouraged to open a discussion before contributing, so that everyone is aligned and unnecessary work is avoided.

  • Feel welcome to open an issue if you think you’ve spotted a bug or a performance issue.

Please check out the contribution guidelines if you want to bring modifications to the code base.

📝 License

Sliceline is free and open-source software licensed under the 3-clause BSD license.

Metadata

Release files for zeno-sliceline 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zeno-sliceline 0.0.1
File Size Uploaded
zeno_sliceline-0.0.1.tar.gz 18.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zeno-sliceline 0.0.1
File Interpreter ABI Platform
zeno_sliceline-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 36.9 kB

Release files / zeno_sliceline-0.0.1.tar.gz

Download URL zeno_sliceline-0.0.1.tar.gz
Size 18.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3c9f9f8cd6c6e592d097bb09e84193122fd0a5a9704f765ddee1b5f14aaf2b69
BLAKE2b-256 checksum
How to use checksums
3f343aa6051078db1b164d977056158ffaad74e7711fbe5eeb21779973129cb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.8.12 Darwin/22.4.0

Release files / zeno_sliceline-0.0.1-py3-none-any.whl

Download URL zeno_sliceline-0.0.1-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ecbc978440912e82b3917472386b14a45c2f7814396071706e4e0a116061123f
BLAKE2b-256 checksum
How to use checksums
d82880f60fd1814add6c60e5cc34d3259d57d0bbb360baef8943479f34ad173d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.8.12 Darwin/22.4.0

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

0.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page