dadapy 0.3.2__tar.gz → 0.3.4__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.2 → dadapy-0.3.4}/PKG-INFO +15 -4
- {dadapy-0.3.2 → dadapy-0.3.4}/README.md +12 -2
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/__init__.py +2 -0
- dadapy-0.3.4/dadapy/_cython/cython_clustering.c +18142 -0
- dadapy-0.3.4/dadapy/_cython/cython_clustering_v2.c +18983 -0
- dadapy-0.3.4/dadapy/_cython/cython_density.c +13145 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_cython/cython_differentiable_imbalance.c +12564 -12712
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_cython/cython_distances.c +13313 -13329
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_cython/cython_grads.c +18906 -18725
- dadapy-0.3.4/dadapy/_cython/cython_maximum_likelihood_opt.c +12943 -0
- dadapy-0.3.4/dadapy/_cython/cython_maximum_likelihood_opt_full.c +13153 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_cython/cython_overlap.c +12884 -12827
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/utils.py +3 -3
- dadapy-0.3.4/dadapy/causal_graph.py +1456 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/clustering.py +8 -1
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/data.py +35 -15
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/density_advanced.py +84 -13
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/density_estimation.py +66 -19
- dadapy-0.3.4/dadapy/diff_imbalance.py +1698 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/kstar.py +20 -6
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/neigh_graph.py +21 -6
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy.egg-info/PKG-INFO +15 -4
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy.egg-info/SOURCES.txt +1 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy.egg-info/requires.txt +1 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/pyproject.toml +3 -2
- dadapy-0.3.2/dadapy/_cython/cython_clustering.c +0 -17536
- dadapy-0.3.2/dadapy/_cython/cython_clustering_v2.c +0 -18424
- dadapy-0.3.2/dadapy/_cython/cython_density.c +0 -11695
- dadapy-0.3.2/dadapy/_cython/cython_maximum_likelihood_opt.c +0 -11922
- dadapy-0.3.2/dadapy/_cython/cython_maximum_likelihood_opt_full.c +0 -12157
- dadapy-0.3.2/dadapy/diff_imbalance.py +0 -808
- {dadapy-0.3.2 → dadapy-0.3.4}/LICENSE +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/__init__.py +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/density_estimation.py +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/differentiable_imbalance.py +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/discrete_functions.py +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/discrete_volumes/L_coefficients_exact.dat +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/discrete_volumes/L_coefficients_float.dat +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/discrete_volumes/V_exact.dat +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/id_estimation.py +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/metric_comparisons.py +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/base.py +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/data_sets.py +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/feature_weighting.py +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/hamming.py +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/id_discrete.py +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/id_estimation.py +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/metric_comparisons.py +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/plot.py +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy.egg-info/dependency_links.txt +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/dadapy.egg-info/top_level.txt +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/setup.cfg +0 -0
- {dadapy-0.3.2 → dadapy-0.3.4}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: dadapy
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.4
|
|
4
4
|
Summary: Distance-based Analysis of DAta-manifolds in python
|
|
5
5
|
Author: DADApy author
|
|
6
6
|
License: Apache License
|
|
@@ -215,6 +215,7 @@ Requires-Dist: scikit-learn
|
|
|
215
215
|
Requires-Dist: matplotlib
|
|
216
216
|
Requires-Dist: seaborn
|
|
217
217
|
Requires-Dist: tqdm
|
|
218
|
+
Requires-Dist: networkx
|
|
218
219
|
Requires-Dist: jax; python_version < "3.9"
|
|
219
220
|
Requires-Dist: jax==0.4.30; python_version >= "3.9"
|
|
220
221
|
Requires-Dist: jaxlib; python_version < "3.9"
|
|
@@ -289,6 +290,9 @@ overlap_labels = data.return_label_overlap(labels)
|
|
|
289
290
|
> Denti et al., *Scientific Reports* (2022)
|
|
290
291
|
- I3D estimator (for both continuous and discrete spaces)
|
|
291
292
|
> Macocco et al., *Physical Review Letters* (2023)
|
|
293
|
+
- BID estimator
|
|
294
|
+
> Acevedo et al., *Nature Communications Physics* (2025)
|
|
295
|
+
|
|
292
296
|
- Density estimators
|
|
293
297
|
-
|
|
294
298
|
- kNN estimator
|
|
@@ -319,11 +323,18 @@ overlap_labels = data.return_label_overlap(labels)
|
|
|
319
323
|
- Feature selection and weighting tool
|
|
320
324
|
-
|
|
321
325
|
- Differentiable Information Imbalance
|
|
326
|
+
> Wild et al., *Nature Communications* (2025)
|
|
322
327
|
|
|
328
|
+
- Causal analysis tools
|
|
329
|
+
-
|
|
330
|
+
- Imbalance Gain
|
|
331
|
+
> Del Tatto et al., *PNAS* (2024)
|
|
332
|
+
- Community causal graph
|
|
333
|
+
> Allione et al., arXiv (2025)
|
|
323
334
|
|
|
324
335
|
# Installation
|
|
325
336
|
The package is compatible with the Python versions 3.8, 3.9, 3.10, 3.11, and 3.12.
|
|
326
|
-
The methods of the
|
|
337
|
+
The methods of the classes ```DiffImbalance``` and ```CausalGraph``` are only compatible with Python>=3.9.
|
|
327
338
|
We currently only support Unix-based systems, including Linux and macOS.
|
|
328
339
|
For Windows machines, we suggest using the [Windows Subsystem for Linux (WSL)](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux).
|
|
329
340
|
|
|
@@ -353,7 +364,7 @@ python setup.py build_ext --inplace
|
|
|
353
364
|
pip install .
|
|
354
365
|
```
|
|
355
366
|
|
|
356
|
-
The methods of the
|
|
367
|
+
The methods of the classes ```DiffImbalance``` and ```CausalGraph``` 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
368
|
|
|
358
369
|
```sh
|
|
359
370
|
pip install --upgrade "jax[cuda12_pip]==0.4.30" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
|
|
@@ -61,6 +61,9 @@ overlap_labels = data.return_label_overlap(labels)
|
|
|
61
61
|
> Denti et al., *Scientific Reports* (2022)
|
|
62
62
|
- I3D estimator (for both continuous and discrete spaces)
|
|
63
63
|
> Macocco et al., *Physical Review Letters* (2023)
|
|
64
|
+
- BID estimator
|
|
65
|
+
> Acevedo et al., *Nature Communications Physics* (2025)
|
|
66
|
+
|
|
64
67
|
- Density estimators
|
|
65
68
|
-
|
|
66
69
|
- kNN estimator
|
|
@@ -91,11 +94,18 @@ overlap_labels = data.return_label_overlap(labels)
|
|
|
91
94
|
- Feature selection and weighting tool
|
|
92
95
|
-
|
|
93
96
|
- Differentiable Information Imbalance
|
|
97
|
+
> Wild et al., *Nature Communications* (2025)
|
|
94
98
|
|
|
99
|
+
- Causal analysis tools
|
|
100
|
+
-
|
|
101
|
+
- Imbalance Gain
|
|
102
|
+
> Del Tatto et al., *PNAS* (2024)
|
|
103
|
+
- Community causal graph
|
|
104
|
+
> Allione et al., arXiv (2025)
|
|
95
105
|
|
|
96
106
|
# Installation
|
|
97
107
|
The package is compatible with the Python versions 3.8, 3.9, 3.10, 3.11, and 3.12.
|
|
98
|
-
The methods of the
|
|
108
|
+
The methods of the classes ```DiffImbalance``` and ```CausalGraph``` are only compatible with Python>=3.9.
|
|
99
109
|
We currently only support Unix-based systems, including Linux and macOS.
|
|
100
110
|
For Windows machines, we suggest using the [Windows Subsystem for Linux (WSL)](https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux).
|
|
101
111
|
|
|
@@ -125,7 +135,7 @@ python setup.py build_ext --inplace
|
|
|
125
135
|
pip install .
|
|
126
136
|
```
|
|
127
137
|
|
|
128
|
-
The methods of the
|
|
138
|
+
The methods of the classes ```DiffImbalance``` and ```CausalGraph``` 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
139
|
|
|
130
140
|
```sh
|
|
131
141
|
pip install --upgrade "jax[cuda12_pip]==0.4.30" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
|