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.
Files changed (53) hide show
  1. {dadapy-0.3.2 → dadapy-0.3.4}/PKG-INFO +15 -4
  2. {dadapy-0.3.2 → dadapy-0.3.4}/README.md +12 -2
  3. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/__init__.py +2 -0
  4. dadapy-0.3.4/dadapy/_cython/cython_clustering.c +18142 -0
  5. dadapy-0.3.4/dadapy/_cython/cython_clustering_v2.c +18983 -0
  6. dadapy-0.3.4/dadapy/_cython/cython_density.c +13145 -0
  7. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_cython/cython_differentiable_imbalance.c +12564 -12712
  8. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_cython/cython_distances.c +13313 -13329
  9. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_cython/cython_grads.c +18906 -18725
  10. dadapy-0.3.4/dadapy/_cython/cython_maximum_likelihood_opt.c +12943 -0
  11. dadapy-0.3.4/dadapy/_cython/cython_maximum_likelihood_opt_full.c +13153 -0
  12. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_cython/cython_overlap.c +12884 -12827
  13. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/utils.py +3 -3
  14. dadapy-0.3.4/dadapy/causal_graph.py +1456 -0
  15. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/clustering.py +8 -1
  16. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/data.py +35 -15
  17. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/density_advanced.py +84 -13
  18. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/density_estimation.py +66 -19
  19. dadapy-0.3.4/dadapy/diff_imbalance.py +1698 -0
  20. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/kstar.py +20 -6
  21. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/neigh_graph.py +21 -6
  22. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy.egg-info/PKG-INFO +15 -4
  23. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy.egg-info/SOURCES.txt +1 -0
  24. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy.egg-info/requires.txt +1 -0
  25. {dadapy-0.3.2 → dadapy-0.3.4}/pyproject.toml +3 -2
  26. dadapy-0.3.2/dadapy/_cython/cython_clustering.c +0 -17536
  27. dadapy-0.3.2/dadapy/_cython/cython_clustering_v2.c +0 -18424
  28. dadapy-0.3.2/dadapy/_cython/cython_density.c +0 -11695
  29. dadapy-0.3.2/dadapy/_cython/cython_maximum_likelihood_opt.c +0 -11922
  30. dadapy-0.3.2/dadapy/_cython/cython_maximum_likelihood_opt_full.c +0 -12157
  31. dadapy-0.3.2/dadapy/diff_imbalance.py +0 -808
  32. {dadapy-0.3.2 → dadapy-0.3.4}/LICENSE +0 -0
  33. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/__init__.py +0 -0
  34. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/density_estimation.py +0 -0
  35. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/differentiable_imbalance.py +0 -0
  36. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/discrete_functions.py +0 -0
  37. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/discrete_volumes/L_coefficients_exact.dat +0 -0
  38. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/discrete_volumes/L_coefficients_float.dat +0 -0
  39. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/discrete_volumes/V_exact.dat +0 -0
  40. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/id_estimation.py +0 -0
  41. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/_utils/metric_comparisons.py +0 -0
  42. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/base.py +0 -0
  43. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/data_sets.py +0 -0
  44. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/feature_weighting.py +0 -0
  45. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/hamming.py +0 -0
  46. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/id_discrete.py +0 -0
  47. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/id_estimation.py +0 -0
  48. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/metric_comparisons.py +0 -0
  49. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy/plot.py +0 -0
  50. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy.egg-info/dependency_links.txt +0 -0
  51. {dadapy-0.3.2 → dadapy-0.3.4}/dadapy.egg-info/top_level.txt +0 -0
  52. {dadapy-0.3.2 → dadapy-0.3.4}/setup.cfg +0 -0
  53. {dadapy-0.3.2 → dadapy-0.3.4}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: dadapy
3
- Version: 0.3.2
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 class DiffImbalance are only compatible with Python>=3.9.
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 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:
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 class DiffImbalance are only compatible with Python>=3.9.
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 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:
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
@@ -16,3 +16,5 @@ from .neigh_graph import NeighGraph
16
16
 
17
17
  if sys.version_info >= (3, 9):
18
18
  from .diff_imbalance import DiffImbalance
19
+ if sys.version_info >= (3, 9):
20
+ from .causal_graph import CausalGraph