graphembed-rs 0.1.0__cp313-cp313-macosx_11_0_arm64.whl → 0.1.1__cp313-cp313-macosx_11_0_arm64.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.
@@ -0,0 +1,5 @@
1
+ from .graphembed_rs import *
2
+
3
+ __doc__ = graphembed_rs.__doc__
4
+ if hasattr(graphembed_rs, "__all__"):
5
+ __all__ = graphembed_rs.__all__
@@ -1,14 +1,15 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: graphembed_rs
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
+ License-File: LICENSE-MIT
4
5
  Summary: Python bindings for the high‑performance Rust graph/network embedding library graphembed
5
6
  Keywords: graph,embedding,hash
6
7
  Author: Jianshu Zhao
7
- Author-email: jeanpierre.both@gmail.com, jianshuzhao@yahoo.com
8
+ Author-email: jeanpierre.both@gmail.com
8
9
  License: MIT OR Apache-2.0
9
10
  Requires-Python: >=3.8
10
11
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
11
- Project-URL: Source Code, https://gitlab.com/Jianshu_Zhao/graphembed
12
+ Project-URL: Source Code, https://github.com/jean-pierreBoth/graphembed
12
13
 
13
14
  [![install with bioconda](https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg?style=flat)](http://bioconda.github.io/recipes/graphembed/README.html)
14
15
  ![](https://anaconda.org/bioconda/graphembed/badges/license.svg)
@@ -20,7 +21,7 @@ Project-URL: Source Code, https://gitlab.com/Jianshu_Zhao/graphembed
20
21
 
21
22
  # GraphEmbed: Efficient and Robust Network Embedding via High-Order Proximity Preservation or Recursive Sketching
22
23
 
23
- This crate provides an executable and a library for embedding of directed or undirected graphs with positively weighted edges. We engineered and optimized current network embedding algorithms for large-scale network embedding, especially biological network. This crate was developed by [Jianshu Zhao](https://gitlab.com/Jianshu_Zhao) and Jean-Pierre Both [jpboth](https://gitlab.com/jpboth).
24
+ This crate provides an executable and a library for embedding of directed or undirected graphs with positively weighted edges. We engineered and optimized current network embedding algorithms for large-scale network embedding, especially biological network. This crate was developed by [Jianshu Zhao](https://gitlab.com/Jianshu_Zhao) and Jean-Pierre Both [jpboth](https://gitlab.com/jpboth). We have a copy here in [Github](https://github.com/jianshu93/graphembed)
24
25
 
25
26
 
26
27
  - For simple graphs, without data attached to nodes, there are 2 modules **nodesketch** and **atp**. A simple executable with a validation option based on link prediction is also provided.
@@ -45,7 +46,38 @@ conda install -c conda-forge -c bioconda graphembed
45
46
  brew tap jianshu93/graphembed
46
47
  brew update
47
48
  brew install graphembed
49
+ ```
50
+
51
+
52
+ ### In Python (Please install python first)
53
+ ```bash
54
+ pip install graphembed_rs
55
+
56
+ ### or you can build from source (Linux) after installing maturin
57
+ git clone https://gitlab.com/Jianshu_Zhao/graphembed
58
+ cd graphembed
59
+ pip install maturin
60
+ ### note: for macOS, you need to change the line "features = ["pyo3/extension-module", "intel-mkl-static", "simdeez_f"]" in pyporject.toml to "features = ["pyo3/extension-module","openblas-system","stdsimd"]"
61
+ maturin develop --release
62
+
63
+ #### Prepare some data
64
+ wget https://gitlab.com/-/project/64961144/uploads/4e341383d62d86d1dd66e668e91b2c07/BlogCatalog.txt
65
+ ```
48
66
 
67
+ ```python
68
+ import os
69
+ os.environ["RUST_LOG"] = "graphembed=info"
70
+ import graphembed as ge
71
+ help(ge)
72
+ ### HOPE
73
+ ge.embed_hope_rank("BlogCatalog.txt", target_rank=128, nbiter=4)
74
+
75
+ ### Sketching
76
+ ### sketching only
77
+ ge.embed_sketching("BlogCatalog.txt", decay=0.3, dim=128, nbiter=5, symetric=True, output="embedding_output")
78
+ ### validate accuracy
79
+ auc_scores = ge.validate_sketching("BlogCatalog.txt",decay=0.3, dim=128, nbiter=3, nbpass=1, skip_frac=0.2,symetric=True, centric=True)
80
+ print("Standard AUC per pass:", auc_scores)
49
81
  ```
50
82
 
51
83
  ## Methods
@@ -0,0 +1,8 @@
1
+ graphembed_rs-0.1.1.dist-info/METADATA,sha256=uW8W9UwifiE6FViIKpp1I7d5e6ygVuo6AA2O72MogLU,10890
2
+ graphembed_rs-0.1.1.dist-info/WHEEL,sha256=_czbP61TsBkf9T201RekHMHlqESnWn7yJwXBJC9P-w0,104
3
+ graphembed_rs-0.1.1.dist-info/licenses/LICENSE-MIT,sha256=ndZ12D28O4UkfOeoa6HP9E7IKyYG4iH79iQ6WiLs9bc,1077
4
+ graphembed_rs/__init__.py,sha256=R2D0If_-sN__21LBYNod0CNgVo2dCd2RqM11AStM3X0,135
5
+ graphembed_rs/__init__.pyi,sha256=3_KBFG4g9akylo32CHlm9bZStcLwxIY2X4si21ilD3w,1626
6
+ graphembed_rs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ graphembed_rs/graphembed_rs.cpython-313-darwin.so,sha256=JtzFT8F20CNVveamlQ2OcQn3MnsJ6g9RIrB_H01rFt0,5105200
8
+ graphembed_rs-0.1.1.dist-info/RECORD,,
@@ -0,0 +1,25 @@
1
+ Copyright (c) 2022 jean-pierre.both and Jianshu Zhao
2
+
3
+ Permission is hereby granted, free of charge, to any
4
+ person obtaining a copy of this software and associated
5
+ documentation files (the "Software"), to deal in the
6
+ Software without restriction, including without
7
+ limitation the rights to use, copy, modify, merge,
8
+ publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software
10
+ is furnished to do so, subject to the following
11
+ conditions:
12
+
13
+ The above copyright notice and this permission notice
14
+ shall be included in all copies or substantial portions
15
+ of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
18
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
19
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
20
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
21
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
24
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25
+ DEALINGS IN THE SOFTWARE.
graphembed/__init__.py DELETED
@@ -1,5 +0,0 @@
1
- from .graphembed import *
2
-
3
- __doc__ = graphembed.__doc__
4
- if hasattr(graphembed, "__all__"):
5
- __all__ = graphembed.__all__
Binary file
@@ -1,7 +0,0 @@
1
- graphembed_rs-0.1.0.dist-info/METADATA,sha256=dxYkTamZDsIFcEqterZ0LEeXQDItlSW2aZjmL6u1vuI,9694
2
- graphembed_rs-0.1.0.dist-info/WHEEL,sha256=_czbP61TsBkf9T201RekHMHlqESnWn7yJwXBJC9P-w0,104
3
- graphembed/__init__.py,sha256=RCcLraveWf-myTsDQGePMYq-scNNfz-3Mv1baSbgAmM,123
4
- graphembed/__init__.pyi,sha256=3_KBFG4g9akylo32CHlm9bZStcLwxIY2X4si21ilD3w,1626
5
- graphembed/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- graphembed/graphembed.cpython-313-darwin.so,sha256=6MnpRaFtxd9VQ4aK_yHbA-C9eqiVELPJGAIs6KJwt8I,5126848
7
- graphembed_rs-0.1.0.dist-info/RECORD,,
File without changes
File without changes