dadapy 0.3.0__tar.gz → 0.3.2__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.
- {dadapy-0.3.0 → dadapy-0.3.2}/PKG-INFO +26 -7
- {dadapy-0.3.0 → dadapy-0.3.2}/README.md +17 -4
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/__init__.py +5 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_cython/cython_grads.c +1506 -4259
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_utils/differentiable_imbalance.py +35 -14
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/density_advanced.py +128 -27
- dadapy-0.3.2/dadapy/diff_imbalance.py +808 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/feature_weighting.py +26 -16
- dadapy-0.3.2/dadapy/hamming.py +629 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/neigh_graph.py +67 -29
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy.egg-info/PKG-INFO +26 -7
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy.egg-info/SOURCES.txt +2 -0
- dadapy-0.3.2/dadapy.egg-info/requires.txt +21 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/pyproject.toml +10 -5
- dadapy-0.3.0/dadapy.egg-info/requires.txt +0 -11
- {dadapy-0.3.0 → dadapy-0.3.2}/LICENSE +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_cython/cython_clustering.c +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_cython/cython_clustering_v2.c +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_cython/cython_density.c +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_cython/cython_differentiable_imbalance.c +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_cython/cython_distances.c +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_cython/cython_maximum_likelihood_opt.c +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_cython/cython_maximum_likelihood_opt_full.c +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_cython/cython_overlap.c +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_utils/__init__.py +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_utils/density_estimation.py +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_utils/discrete_functions.py +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_utils/discrete_volumes/L_coefficients_exact.dat +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_utils/discrete_volumes/L_coefficients_float.dat +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_utils/discrete_volumes/V_exact.dat +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_utils/id_estimation.py +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_utils/metric_comparisons.py +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/_utils/utils.py +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/base.py +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/clustering.py +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/data.py +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/data_sets.py +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/density_estimation.py +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/id_discrete.py +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/id_estimation.py +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/kstar.py +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/metric_comparisons.py +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy/plot.py +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy.egg-info/dependency_links.txt +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/dadapy.egg-info/top_level.txt +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/setup.cfg +0 -0
- {dadapy-0.3.0 → dadapy-0.3.2}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dadapy
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Distance-based Analysis of DAta-manifolds in python
|
|
5
5
|
Author: DADApy author
|
|
6
6
|
License: Apache License
|
|
@@ -207,13 +207,19 @@ License: Apache License
|
|
|
207
207
|
Project-URL: homepage, https://github.com/sissa-data-science/DADApy
|
|
208
208
|
Project-URL: documentation, https://dadapy.readthedocs.io/
|
|
209
209
|
Project-URL: repository, https://github.com/sissa-data-science/DADApy
|
|
210
|
-
Requires-Python: >=3.
|
|
210
|
+
Requires-Python: >=3.8
|
|
211
211
|
Description-Content-Type: text/markdown
|
|
212
|
-
Requires-Dist: numpy
|
|
212
|
+
Requires-Dist: numpy<2.0
|
|
213
213
|
Requires-Dist: scipy
|
|
214
214
|
Requires-Dist: scikit-learn
|
|
215
215
|
Requires-Dist: matplotlib
|
|
216
216
|
Requires-Dist: seaborn
|
|
217
|
+
Requires-Dist: tqdm
|
|
218
|
+
Requires-Dist: jax; python_version < "3.9"
|
|
219
|
+
Requires-Dist: jax==0.4.30; python_version >= "3.9"
|
|
220
|
+
Requires-Dist: jaxlib; python_version < "3.9"
|
|
221
|
+
Requires-Dist: jaxlib==0.4.30; python_version >= "3.9"
|
|
222
|
+
Requires-Dist: flax==0.8.5; python_version >= "3.9"
|
|
217
223
|
Provides-Extra: dev
|
|
218
224
|
Requires-Dist: tox; extra == "dev"
|
|
219
225
|
Requires-Dist: black; extra == "dev"
|
|
@@ -289,8 +295,10 @@ overlap_labels = data.return_label_overlap(labels)
|
|
|
289
295
|
- k*NN estimator (kNN with an adaptive choice of k)
|
|
290
296
|
- PAk estimator
|
|
291
297
|
> Rodriguez et al., *JCTC* (2018)
|
|
298
|
+
- point-adaptive mean-shift gradient estimator
|
|
299
|
+
> Carli et al., *ArXiv* (2024)
|
|
292
300
|
- BMTI estimator
|
|
293
|
-
> Carli et al., *
|
|
301
|
+
> Carli et al., *ArXiv* (2024)
|
|
294
302
|
|
|
295
303
|
- Density peaks clustering methods
|
|
296
304
|
-
|
|
@@ -309,15 +317,17 @@ overlap_labels = data.return_label_overlap(labels)
|
|
|
309
317
|
> Glielmo et al., *PNAS Nexus* (2022)
|
|
310
318
|
|
|
311
319
|
- Feature selection and weighting tool
|
|
312
|
-
-
|
|
320
|
+
-
|
|
313
321
|
- Differentiable Information Imbalance
|
|
314
322
|
|
|
315
323
|
|
|
316
324
|
# Installation
|
|
317
|
-
The package is compatible with the Python versions 3.
|
|
325
|
+
The package is compatible with the Python versions 3.8, 3.9, 3.10, 3.11, and 3.12.
|
|
326
|
+
The methods of the class DiffImbalance are only compatible with Python>=3.9.
|
|
327
|
+
We currently only support Unix-based systems, including Linux and macOS.
|
|
318
328
|
For Windows machines, we suggest using the [Windows Subsystem for Linux (WSL)](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux).
|
|
319
329
|
|
|
320
|
-
The package requires `numpy`, `scipy
|
|
330
|
+
The package requires `numpy`, `scipy`, `scikit-learn`, `jax`, `jaxlib` and `matplotlib` for the visualizations.
|
|
321
331
|
|
|
322
332
|
The package contains Cython-generated C extensions that are automatically compiled during installation.
|
|
323
333
|
|
|
@@ -343,6 +353,15 @@ python setup.py build_ext --inplace
|
|
|
343
353
|
pip install .
|
|
344
354
|
```
|
|
345
355
|
|
|
356
|
+
The methods of the class ```DiffImbalance``` can be run on GPU, using a suitable installation of JAX on a GPU platform. The code has been tested using JAX v0.4.30 with CUDA 12, which can be installed with:
|
|
357
|
+
|
|
358
|
+
```sh
|
|
359
|
+
pip install --upgrade "jax[cuda12_pip]==0.4.30" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
For more information on the installation of the JAX library on GPUs see the official [repository](https://github.com/google/jax?tab=readme-ov-file#installation).
|
|
363
|
+
|
|
364
|
+
|
|
346
365
|
# Citing DADApy
|
|
347
366
|
|
|
348
367
|
A description of the package is available [here](https://www.sciencedirect.com/science/article/pii/S2666389922002070).
|
|
@@ -67,8 +67,10 @@ overlap_labels = data.return_label_overlap(labels)
|
|
|
67
67
|
- k*NN estimator (kNN with an adaptive choice of k)
|
|
68
68
|
- PAk estimator
|
|
69
69
|
> Rodriguez et al., *JCTC* (2018)
|
|
70
|
+
- point-adaptive mean-shift gradient estimator
|
|
71
|
+
> Carli et al., *ArXiv* (2024)
|
|
70
72
|
- BMTI estimator
|
|
71
|
-
> Carli et al., *
|
|
73
|
+
> Carli et al., *ArXiv* (2024)
|
|
72
74
|
|
|
73
75
|
- Density peaks clustering methods
|
|
74
76
|
-
|
|
@@ -87,15 +89,17 @@ overlap_labels = data.return_label_overlap(labels)
|
|
|
87
89
|
> Glielmo et al., *PNAS Nexus* (2022)
|
|
88
90
|
|
|
89
91
|
- Feature selection and weighting tool
|
|
90
|
-
-
|
|
92
|
+
-
|
|
91
93
|
- Differentiable Information Imbalance
|
|
92
94
|
|
|
93
95
|
|
|
94
96
|
# Installation
|
|
95
|
-
The package is compatible with the Python versions 3.
|
|
97
|
+
The package is compatible with the Python versions 3.8, 3.9, 3.10, 3.11, and 3.12.
|
|
98
|
+
The methods of the class DiffImbalance are only compatible with Python>=3.9.
|
|
99
|
+
We currently only support Unix-based systems, including Linux and macOS.
|
|
96
100
|
For Windows machines, we suggest using the [Windows Subsystem for Linux (WSL)](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux).
|
|
97
101
|
|
|
98
|
-
The package requires `numpy`, `scipy
|
|
102
|
+
The package requires `numpy`, `scipy`, `scikit-learn`, `jax`, `jaxlib` and `matplotlib` for the visualizations.
|
|
99
103
|
|
|
100
104
|
The package contains Cython-generated C extensions that are automatically compiled during installation.
|
|
101
105
|
|
|
@@ -121,6 +125,15 @@ python setup.py build_ext --inplace
|
|
|
121
125
|
pip install .
|
|
122
126
|
```
|
|
123
127
|
|
|
128
|
+
The methods of the class ```DiffImbalance``` can be run on GPU, using a suitable installation of JAX on a GPU platform. The code has been tested using JAX v0.4.30 with CUDA 12, which can be installed with:
|
|
129
|
+
|
|
130
|
+
```sh
|
|
131
|
+
pip install --upgrade "jax[cuda12_pip]==0.4.30" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
For more information on the installation of the JAX library on GPUs see the official [repository](https://github.com/google/jax?tab=readme-ov-file#installation).
|
|
135
|
+
|
|
136
|
+
|
|
124
137
|
# Citing DADApy
|
|
125
138
|
|
|
126
139
|
A description of the package is available [here](https://www.sciencedirect.com/science/article/pii/S2666389922002070).
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
|
|
1
3
|
from ._utils.utils import *
|
|
2
4
|
from .base import Base
|
|
3
5
|
from .clustering import Clustering
|
|
@@ -11,3 +13,6 @@ from .id_estimation import IdEstimation
|
|
|
11
13
|
from .kstar import KStar
|
|
12
14
|
from .metric_comparisons import MetricComparisons
|
|
13
15
|
from .neigh_graph import NeighGraph
|
|
16
|
+
|
|
17
|
+
if sys.version_info >= (3, 9):
|
|
18
|
+
from .diff_imbalance import DiffImbalance
|