multipers 1.0__cp311-cp311-manylinux_2_34_x86_64.whl

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.

Potentially problematic release.


This version of multipers might be problematic. Click here for more details.

Files changed (56) hide show
  1. multipers/__init__.py +4 -0
  2. multipers/_old_rank_invariant.pyx +328 -0
  3. multipers/_signed_measure_meta.py +72 -0
  4. multipers/data/MOL2.py +350 -0
  5. multipers/data/UCR.py +18 -0
  6. multipers/data/__init__.py +1 -0
  7. multipers/data/graphs.py +272 -0
  8. multipers/data/immuno_regions.py +27 -0
  9. multipers/data/minimal_presentation_to_st_bf.py +0 -0
  10. multipers/data/pytorch2simplextree.py +91 -0
  11. multipers/data/shape3d.py +101 -0
  12. multipers/data/synthetic.py +68 -0
  13. multipers/distances.py +100 -0
  14. multipers/euler_characteristic.cpython-311-x86_64-linux-gnu.so +0 -0
  15. multipers/euler_characteristic.pyx +132 -0
  16. multipers/function_rips.cpython-311-x86_64-linux-gnu.so +0 -0
  17. multipers/function_rips.pyx +101 -0
  18. multipers/hilbert_function.cpython-311-x86_64-linux-gnu.so +0 -0
  19. multipers/hilbert_function.pyi +46 -0
  20. multipers/hilbert_function.pyx +145 -0
  21. multipers/ml/__init__.py +0 -0
  22. multipers/ml/accuracies.py +61 -0
  23. multipers/ml/convolutions.py +384 -0
  24. multipers/ml/invariants_with_persistable.py +79 -0
  25. multipers/ml/kernels.py +128 -0
  26. multipers/ml/mma.py +422 -0
  27. multipers/ml/one.py +472 -0
  28. multipers/ml/point_clouds.py +191 -0
  29. multipers/ml/signed_betti.py +50 -0
  30. multipers/ml/signed_measures.py +1046 -0
  31. multipers/ml/sliced_wasserstein.py +313 -0
  32. multipers/ml/tools.py +99 -0
  33. multipers/multiparameter_edge_collapse.py +29 -0
  34. multipers/multiparameter_module_approximation.cpython-311-x86_64-linux-gnu.so +0 -0
  35. multipers/multiparameter_module_approximation.pxd +147 -0
  36. multipers/multiparameter_module_approximation.pyi +439 -0
  37. multipers/multiparameter_module_approximation.pyx +931 -0
  38. multipers/pickle.py +53 -0
  39. multipers/plots.py +207 -0
  40. multipers/point_measure_integration.cpython-311-x86_64-linux-gnu.so +0 -0
  41. multipers/point_measure_integration.pyx +59 -0
  42. multipers/rank_invariant.cpython-311-x86_64-linux-gnu.so +0 -0
  43. multipers/rank_invariant.pyx +154 -0
  44. multipers/simplex_tree_multi.cpython-311-x86_64-linux-gnu.so +0 -0
  45. multipers/simplex_tree_multi.pxd +121 -0
  46. multipers/simplex_tree_multi.pyi +715 -0
  47. multipers/simplex_tree_multi.pyx +1284 -0
  48. multipers/tensor.pxd +13 -0
  49. multipers/test.pyx +44 -0
  50. multipers-1.0.dist-info/LICENSE +21 -0
  51. multipers-1.0.dist-info/METADATA +9 -0
  52. multipers-1.0.dist-info/RECORD +56 -0
  53. multipers-1.0.dist-info/WHEEL +5 -0
  54. multipers-1.0.dist-info/top_level.txt +1 -0
  55. multipers.libs/libtbb-5d1cde94.so.12.10 +0 -0
  56. multipers.libs/libtbbmalloc-5e0a3d4c.so.2.10 +0 -0
multipers/tensor.pxd ADDED
@@ -0,0 +1,13 @@
1
+ from libc.stdint cimport uint16_t
2
+ from libcpp.vector cimport vector
3
+ from libcpp cimport bool, float
4
+
5
+
6
+ ctypedef float dtype
7
+ ctypedef uint16_t index_type
8
+
9
+ cdef extern from "tensor/tensor.h" namespace "tensor":
10
+ cdef cppclass static_tensor_view[float, uint16_t]:
11
+ static_tensor_view() except + nogil
12
+ static_tensor_view(dtype*,const vector[index_type]&) except + nogil
13
+ const vector[index_type]& get_resolution()
multipers/test.pyx ADDED
@@ -0,0 +1,44 @@
1
+ # cimport multipers.tensor as mt
2
+ from libc.stdint cimport intptr_t, uint16_t
3
+ from libcpp.vector cimport vector
4
+ from libcpp cimport bool, int, float
5
+ from libcpp.utility cimport pair
6
+ from typing import Optional,Iterable,Callable
7
+
8
+
9
+ ctypedef float value_type
10
+ # ctypedef uint16_t index_type
11
+
12
+ import numpy as np
13
+ # cimport numpy as cnp
14
+ # cnp.import_array()
15
+
16
+ # cdef extern from "multi_parameter_rank_invariant/rank_invariant.h" namespace "Gudhi::rank_invariant":
17
+ # void get_hilbert_surface(const intptr_t, mt.static_tensor_view, const vector[index_type], const vector[index_type], index_type, index_type, const vector[index_type], bool, bool) except + nogil
18
+
19
+
20
+ from multipers.simplex_tree_multi import SimplexTreeMulti
21
+
22
+
23
+ def numpy_to_tensor(array:np.ndarray):
24
+ cdef vector[index_type] shape = array.shape
25
+ cdef dtype[::1] contigus_array_view = np.ascontiguousarray(array)
26
+ cdef dtype* dtype_ptr = &contigus_array_view[0]
27
+ cdef mt.static_tensor_view tensor
28
+ with nogil:
29
+ tensor = mt.static_tensor_view(dtype_ptr, shape)
30
+ return tensor.get_resolution()
31
+
32
+ # def hilbert2d(simplextree:SimplexTreeMulti, grid_shape:np.ndarray|list, vector[index_type] degrees, bool mobius_inversion):
33
+ # # assert simplextree.num_parameters == 2
34
+ # cdef intptr_t ptr = simplextree.thisptr
35
+ # cdef vector[index_type] c_grid_shape = grid_shape
36
+ # cdef dtype[::1] container = np.zeros(grid_shape, dtype=np.float32).flatten()
37
+ # cdef dtype* container_ptr = &container[0]
38
+ # cdef mt.static_tensor_view c_container = mt.static_tensor_view(container_ptr, c_grid_shape)
39
+ # cdef index_type i = 0
40
+ # cdef index_type j = 1
41
+ # cdef vector[index_type] fixed_values = [[],[]]
42
+ # # get_hilbert_surface(ptr, c_container, c_grid_shape, degrees,i,j,fixed_values, False, False)
43
+ # return container.reshape(grid_shape)
44
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 David Loiseaux
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,9 @@
1
+ Metadata-Version: 2.1
2
+ Name: multipers
3
+ Version: 1.0
4
+ Summary: Multiparameter persistence toolkit
5
+ Author: David Loiseaux
6
+ Author-email: david.loiseaux@inria.fr
7
+ Requires-Python: >=3.10
8
+ License-File: LICENSE
9
+
@@ -0,0 +1,56 @@
1
+ multipers-1.0.dist-info/WHEEL,sha256=bpvAS43Tmrk7b0RUtWMWkQATv2LFkCoE7-S71PdcCl0,114
2
+ multipers-1.0.dist-info/LICENSE,sha256=UsQRnvlo_9wpQS9DNt52GEraERHwK2GIRwuqr2Yv5JI,1071
3
+ multipers-1.0.dist-info/RECORD,,
4
+ multipers-1.0.dist-info/top_level.txt,sha256=L9e0AGmhRzrNw9FpuUx-zlqi5NcBOmrI9wYY8kYWr8A,10
5
+ multipers-1.0.dist-info/METADATA,sha256=rUDEZNuM59stFumELkzt89m7jc4nOyfsIcjV2WQeJnU,203
6
+ multipers/_signed_measure_meta.py,sha256=MD9pQ91J_cfldKoZTMncy3C0VDB6ZfTP4Xt6ek7tZqI,3510
7
+ multipers/simplex_tree_multi.cpython-311-x86_64-linux-gnu.so,sha256=exgP8cU1pmz2JjRzy3A9J-xSSgkFB6sTOqVYTIbySp4,1219480
8
+ multipers/function_rips.cpython-311-x86_64-linux-gnu.so,sha256=k7hYba3ep46J7cZMnTPjcdVwfvIpVNrz8AJZgyitJ5w,646624
9
+ multipers/euler_characteristic.cpython-311-x86_64-linux-gnu.so,sha256=UC4gBK2TksKTNhaftH75gJ99iRMC24kU3scApy_-q5U,381888
10
+ multipers/multiparameter_module_approximation.pxd,sha256=EMaORruOyeiSaEkyP2LZmfVfGMqfsp4uaCpERrPKOC4,7507
11
+ multipers/tensor.pxd,sha256=MSmaMU0sOP9CHLmg4dym7nOGaI1S4cOdM01TQ9flI54,417
12
+ multipers/hilbert_function.cpython-311-x86_64-linux-gnu.so,sha256=iWB3YYS3yfYpG2QiqOGJxPa0wdoYcXj2cXOVSCpLyRs,684352
13
+ multipers/plots.py,sha256=Jv153BtWKK265-I09pDLSBeiJjxqS5ensyqasYW4bI8,7235
14
+ multipers/rank_invariant.pyx,sha256=ORB-ila7Bk5arE6vbbMYytFzfhJ2Wb2vGYSYTyVHOlQ,7350
15
+ multipers/point_measure_integration.pyx,sha256=RfN4O2GjxlwDXltqZTAoVSg31Q9cLCqK2XGNToOngnc,1919
16
+ multipers/euler_characteristic.pyx,sha256=WTz4Ynl_6HPMkO12bmA88souFf2k3cwDMkZ6QXyxEWQ,5851
17
+ multipers/pickle.py,sha256=9XAh65HQo_MD663OLbP5-DEG6WNU4zyEJePybDu7Hww,2141
18
+ multipers/multiparameter_module_approximation.pyx,sha256=FVbT5GzJz-vpddXo81S9w_nFfgrbIrYTHZuvvAlCJqk,32051
19
+ multipers/simplex_tree_multi.pyx,sha256=0YAtuKozsQjcLWThrbrm9gSG6S6MVUiecUNfECHYvtk,52831
20
+ multipers/multiparameter_edge_collapse.py,sha256=t9w87UPSGxp6Gxgg7C8R7goVK7zKcQf_uThrSYhnbV0,941
21
+ multipers/distances.py,sha256=ws8DSHlBIGTlspRuKMQmVMwJwmrjNey3gdK3e4cyLbE,4551
22
+ multipers/_old_rank_invariant.pyx,sha256=i4olUQ1SMXhvu93pQ9Mrp9hKt0fuK2warsIphavRrZk,13288
23
+ multipers/point_measure_integration.cpython-311-x86_64-linux-gnu.so,sha256=Cvs_NuHGOynsw4fBYLfurmqhOROn7vDRURgkRM3y_hk,431296
24
+ multipers/hilbert_function.pyx,sha256=5KIJd9nAzXqeOYmwMV6bsQkav3A9K5GXbUslDO8jxlE,7119
25
+ multipers/multiparameter_module_approximation.cpython-311-x86_64-linux-gnu.so,sha256=MfxMagIiWi2D45c3_b7FBk3T8Xv5wikJnHZ7xo3hTc0,944416
26
+ multipers/hilbert_function.pyi,sha256=Od6PAT53p6ni8-WwRBPhmTz4rR-WhaT45vjGfxyrJrs,1876
27
+ multipers/__init__.py,sha256=0BL1R3AfhtoMMDWTlVRbTkc06oTzeqxKKGlroNIujSY,236
28
+ multipers/function_rips.pyx,sha256=DMKZa2i4Kq-fZ_jUnaPQWZwgMBgw82thbIxXzCcWwjo,4925
29
+ multipers/multiparameter_module_approximation.pyi,sha256=m54hpq-QMcO7PRLhzrG4se77FInzDQ16e3P8N68i3wc,11265
30
+ multipers/simplex_tree_multi.pyi,sha256=2HbiG_Dwgf965gR__C94uUnNgieM5X5fPfbWjbkNkJ4,26162
31
+ multipers/rank_invariant.cpython-311-x86_64-linux-gnu.so,sha256=uti4bCQYIRtLvQYrF0O_-Qy1ZuctGR5IZOIEaF1CVJs,636464
32
+ multipers/simplex_tree_multi.pxd,sha256=R7OEwYfhYika1MnZg5CuZNB2xOjoyhRdv8TAdbakBeE,6483
33
+ multipers/test.pyx,sha256=-g7WU-jKrZK8H0c-6eAPsfrApjvTKrUoswVYFu8LoV4,1798
34
+ multipers/ml/signed_betti.py,sha256=0Gl8nYJv-zN6FTE_JaiARbA-ySzppRDYjFqlnjndpJg,2213
35
+ multipers/ml/kernels.py,sha256=adnL1Yu-5qO32Je1NFLGEHS0e4EY9OAOnckLUc0dpII,4948
36
+ multipers/ml/point_clouds.py,sha256=whln5c0XRoqZziRwMjXPxTYvFxVFWPHbdUFGcKPv5eo,7304
37
+ multipers/ml/tools.py,sha256=PffzOxg-GI8_KtbTkZhhzizpajBOR3f-lASJTNc2QJk,3025
38
+ multipers/ml/mma.py,sha256=mbETopv643xRO1-2OWFDv0Gh0mJSNZ6jHXCkDoN1b64,16250
39
+ multipers/ml/one.py,sha256=np5jM8gywm65TsK1yeZ1BDWqP-Ym-7hz4brTXI_0imk,20119
40
+ multipers/ml/convolutions.py,sha256=NT6G5IFgnADMwlwRicPYxENKuYZGCpsjqHrW-cWxn0A,14175
41
+ multipers/ml/sliced_wasserstein.py,sha256=4eIMxaPgM0oqZ3H8LcaXvLfnOXgqwWiLnYyjcl4aScU,17079
42
+ multipers/ml/invariants_with_persistable.py,sha256=HL0_IIrcJdAmCIqcyHPg0PNLle_pa2esnGQJsK2hnHc,2261
43
+ multipers/ml/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
+ multipers/ml/signed_measures.py,sha256=6p86w6go0WAkMWPZ-ux4sQeCMHdeHyvHXhmNfz9NJDY,44857
45
+ multipers/ml/accuracies.py,sha256=sPTNmrZ8vpBcWG62d4Jz6U9qunfExnbQUMDDQsLukwI,2331
46
+ multipers/data/graphs.py,sha256=0z-D0FnC3OI15aZc-5Q9w4i3DPtIsyNmtEFGhUAVUEM,11117
47
+ multipers/data/MOL2.py,sha256=Deu94qPDQFMf_qNwwtn5zYSYO2KmVBufQfUjq3NDkrI,12988
48
+ multipers/data/synthetic.py,sha256=mXBH_xG9ljGepPvgRMCFGL28pm-C52QiU0s3_9zRNBc,2017
49
+ multipers/data/UCR.py,sha256=PuT8l3i26y0goBzIESwdgJAe6YFCyDiWSoxECcP5rhs,798
50
+ multipers/data/immuno_regions.py,sha256=BNN81DOwdu6sJTkaSeziAYyx0jd0kuZZB5Se0Fo95vA,903
51
+ multipers/data/__init__.py,sha256=w7uUe4LOHbdbKU4R8MNs7em65wZJN0v5ukoG1otFanQ,24
52
+ multipers/data/pytorch2simplextree.py,sha256=cvOJTUleK_qEbcpygRD77GuQl_0qDsSjjD6e6UFUDD0,3048
53
+ multipers/data/minimal_presentation_to_st_bf.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
54
+ multipers/data/shape3d.py,sha256=AE-vvjKrhKxOwMo-lurUsFqqLjIg5obo-RTbRZF_5Mk,3893
55
+ multipers.libs/libtbbmalloc-5e0a3d4c.so.2.10,sha256=BxFSVeEOqP1GmMZm_Zv0iBRtx-0H8kEUbRc3nK6Yt8g,199088
56
+ multipers.libs/libtbb-5d1cde94.so.12.10,sha256=MParNxhS9PL7FVDacfVZBzyZkK61pFW4RZSAjnSD0MM,362200
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.41.2)
3
+ Root-Is-Purelib: false
4
+ Tag: cp311-cp311-manylinux_2_34_x86_64
5
+
@@ -0,0 +1 @@
1
+ multipers
Binary file