sliceline 0.2.13__tar.gz → 0.2.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sliceline-0.2.13 → sliceline-0.2.14}/PKG-INFO +5 -11
- sliceline-0.2.14/pyproject.toml +46 -0
- {sliceline-0.2.13 → sliceline-0.2.14}/sliceline/slicefinder.py +3 -1
- {sliceline-0.2.13 → sliceline-0.2.14}/sliceline/validation.py +0 -1
- sliceline-0.2.13/pyproject.toml +0 -69
- {sliceline-0.2.13 → sliceline-0.2.14}/LICENSE +0 -0
- {sliceline-0.2.13 → sliceline-0.2.14}/README.rst +0 -0
- {sliceline-0.2.13 → sliceline-0.2.14}/sliceline/__init__.py +0 -0
|
@@ -1,25 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: sliceline
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.14
|
|
4
4
|
Summary: ✂️ Fast slice finding for Machine Learning model debugging.
|
|
5
5
|
Home-page: https://github.com/DataDome/sliceline
|
|
6
6
|
License: BSD-3-Clause
|
|
7
7
|
Author: Antoine de Daran
|
|
8
|
-
Requires-Python: >=3.
|
|
8
|
+
Requires-Python: >=3.9,<3.12
|
|
9
9
|
Classifier: License :: OSI Approved :: BSD License
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
13
11
|
Classifier: Programming Language :: Python :: 3.9
|
|
14
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
15
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
-
Requires-Dist: numpy (>=1.
|
|
17
|
-
Requires-Dist:
|
|
18
|
-
Requires-Dist:
|
|
19
|
-
Requires-Dist: scikit-learn (>=1.3,<2.0) ; python_version >= "3.8" and python_version < "3.9"
|
|
20
|
-
Requires-Dist: scikit-learn (>=1.4,<2.0) ; python_version >= "3.9"
|
|
21
|
-
Requires-Dist: scipy (>=1,<2) ; python_version < "3.9"
|
|
22
|
-
Requires-Dist: scipy (>=1.12,<2.0) ; python_version >= "3.9"
|
|
14
|
+
Requires-Dist: numpy (>=1.25,<2.0)
|
|
15
|
+
Requires-Dist: scikit-learn (>=1.5.0,<2.0.0)
|
|
16
|
+
Requires-Dist: scipy (>=1.12,<2.0)
|
|
23
17
|
Project-URL: Documentation, https://sliceline.readthedocs.io/en/stable/
|
|
24
18
|
Project-URL: Repository, https://github.com/DataDome/sliceline
|
|
25
19
|
Description-Content-Type: text/x-rst
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["poetry_core>=1.0.0"]
|
|
3
|
+
build-backend = "poetry.core.masonry.api"
|
|
4
|
+
|
|
5
|
+
[tool.poetry]
|
|
6
|
+
name = "sliceline"
|
|
7
|
+
version = "0.2.14" # This version is a generic placeholder. It should not be changed.
|
|
8
|
+
description = "✂️ Fast slice finding for Machine Learning model debugging."
|
|
9
|
+
authors = ["Antoine de Daran"]
|
|
10
|
+
readme = "README.rst"
|
|
11
|
+
license = "BSD-3-Clause"
|
|
12
|
+
repository = "https://github.com/DataDome/sliceline"
|
|
13
|
+
documentation = "https://sliceline.readthedocs.io/en/stable/"
|
|
14
|
+
|
|
15
|
+
[tool.poetry.dependencies]
|
|
16
|
+
python = ">=3.9, <3.12"
|
|
17
|
+
numpy = "^1.25"
|
|
18
|
+
scikit-learn = "^1.5.0"
|
|
19
|
+
scipy = "^1.12"
|
|
20
|
+
|
|
21
|
+
[tool.poetry.dev-dependencies]
|
|
22
|
+
black = "^24"
|
|
23
|
+
flake8 = "^6"
|
|
24
|
+
jupyter = "^1.0.0"
|
|
25
|
+
matplotlib = "^3.8"
|
|
26
|
+
nbconvert = "^6.5.0"
|
|
27
|
+
optbinning = "^0.15.0"
|
|
28
|
+
pandas = "^1.5"
|
|
29
|
+
pytest = "^7.2.0"
|
|
30
|
+
pytest-benchmark = "^4.0.0"
|
|
31
|
+
pytest-cov = "^3.0.0"
|
|
32
|
+
Sphinx = "^4.0.0"
|
|
33
|
+
sphinx-rtd-theme = "^1.0.0"
|
|
34
|
+
|
|
35
|
+
[tool.black]
|
|
36
|
+
line-length = 79
|
|
37
|
+
include = '\.pyi?$'
|
|
38
|
+
|
|
39
|
+
[tool.isort]
|
|
40
|
+
profile = "black"
|
|
41
|
+
|
|
42
|
+
[tool.coverage.run]
|
|
43
|
+
omit = [".*", "*/site-packages/*", "tests/*", "*/validation.py"]
|
|
44
|
+
|
|
45
|
+
[tool.coverage.report]
|
|
46
|
+
fail_under = 80
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
The slicefinder module implements the Slicefinder class.
|
|
3
3
|
"""
|
|
4
|
+
|
|
4
5
|
import logging
|
|
5
6
|
from typing import Tuple, Union
|
|
6
7
|
|
|
@@ -426,7 +427,8 @@ class Slicefinder(BaseEstimator, TransformerMixin):
|
|
|
426
427
|
self, slices: sp.csr_matrix, statistics: np.ndarray
|
|
427
428
|
) -> Tuple[sp.csr_matrix, np.ndarray]:
|
|
428
429
|
"""Prune invalid slices.
|
|
429
|
-
Do not affect overall pruning effectiveness due to handling of missing parents.
|
|
430
|
+
Do not affect overall pruning effectiveness due to handling of missing parents.
|
|
431
|
+
"""
|
|
430
432
|
valid_slices_mask = (statistics[:, 3] >= self.min_sup) & (
|
|
431
433
|
statistics[:, 1] > 0
|
|
432
434
|
)
|
sliceline-0.2.13/pyproject.toml
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
[build-system]
|
|
2
|
-
requires = ["poetry_core>=1.0.0"]
|
|
3
|
-
build-backend = "poetry.core.masonry.api"
|
|
4
|
-
|
|
5
|
-
[tool.poetry]
|
|
6
|
-
name = "sliceline"
|
|
7
|
-
version = "0.2.13" # This version is a generic placeholder. It should not be changed.
|
|
8
|
-
description = "✂️ Fast slice finding for Machine Learning model debugging."
|
|
9
|
-
authors = ["Antoine de Daran"]
|
|
10
|
-
readme = "README.rst"
|
|
11
|
-
license = "BSD-3-Clause"
|
|
12
|
-
repository = "https://github.com/DataDome/sliceline"
|
|
13
|
-
documentation = "https://sliceline.readthedocs.io/en/stable/"
|
|
14
|
-
|
|
15
|
-
[tool.poetry.dependencies]
|
|
16
|
-
python = ">=3.7, <3.12"
|
|
17
|
-
numpy = [
|
|
18
|
-
{ version = "^1.21", python = "<3.9" },
|
|
19
|
-
{ version = "^1.25", python = ">=3.9" },
|
|
20
|
-
]
|
|
21
|
-
scikit-learn = [
|
|
22
|
-
{ version = "^1", python = "<3.8" },
|
|
23
|
-
{ version = "^1.3", python = ">=3.8,<3.9" },
|
|
24
|
-
{ version = "^1.4", python = ">=3.9" },
|
|
25
|
-
]
|
|
26
|
-
scipy = [
|
|
27
|
-
{ version = "^1", python = "<3.9" },
|
|
28
|
-
{ version = "^1.12", python = ">=3.9" },
|
|
29
|
-
]
|
|
30
|
-
|
|
31
|
-
[tool.poetry.dev-dependencies]
|
|
32
|
-
black = [
|
|
33
|
-
{ version = "^23", python = "<3.8" },
|
|
34
|
-
{ version = "^24", python = ">=3.8" },
|
|
35
|
-
]
|
|
36
|
-
flake8 = [
|
|
37
|
-
{ version = "^5", python = "<3.8.1" },
|
|
38
|
-
{ version = "^6", python = ">=3.8.1" },
|
|
39
|
-
]
|
|
40
|
-
jupyter = "^1.0.0"
|
|
41
|
-
matplotlib = [
|
|
42
|
-
{ version = "^3", python = "<3.8" },
|
|
43
|
-
{ version = "^3.7", python = ">=3.8,<3.9" },
|
|
44
|
-
{ version = "^3.8", python = ">=3.9" },
|
|
45
|
-
]
|
|
46
|
-
nbconvert = "^6.5.0"
|
|
47
|
-
optbinning = "^0.15.0"
|
|
48
|
-
pandas = [
|
|
49
|
-
{ version = "^1", python = "<3.9" },
|
|
50
|
-
{ version = "^1.5", python = ">=3.9" },
|
|
51
|
-
]
|
|
52
|
-
pytest = "^6.2.5"
|
|
53
|
-
pytest-benchmark = "^3.4.1"
|
|
54
|
-
pytest-cov = "^3.0.0"
|
|
55
|
-
Sphinx = "^4.0.0"
|
|
56
|
-
sphinx-rtd-theme = "^1.0.0"
|
|
57
|
-
|
|
58
|
-
[tool.black]
|
|
59
|
-
line-length = 79
|
|
60
|
-
include = '\.pyi?$'
|
|
61
|
-
|
|
62
|
-
[tool.isort]
|
|
63
|
-
profile = "black"
|
|
64
|
-
|
|
65
|
-
[tool.coverage.run]
|
|
66
|
-
omit = [".*", "*/site-packages/*", "tests/*", "*/validation.py"]
|
|
67
|
-
|
|
68
|
-
[tool.coverage.report]
|
|
69
|
-
fail_under = 80
|
|
File without changes
|
|
File without changes
|
|
File without changes
|