{ "info": { "author": "Tiago Pimentel", "author_email": "tpimentelms@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# NBNE\n\nCode to use Neighbor Based Node Embeddings (NBNE) method to create representations to nodes in a graph.\n\n\n### Installation\n\nYou can install NBNE directly from PyPI:\n\n`pip install nbne`\n\nOr from source:\n\n```\ngit clone https://github.com/tiagopms/nbne.git\ncd nbne\npip install .\n```\n#### Dependencies\n\nNBNE has the following requirements:\n\n* [NetworkX](https://networkx.github.io/)\n* [Gensim](https://radimrehurek.com/gensim/)\n\n### Usage\n\n#### Basic Usage\n\nThe libraries gensim and networkx should be installed. Then run:\n\n```bash\n $ nbne --input examples/data/watts_strogatz.graph --output examples/data/watts_strogatz.emb\n```\n\n#### Using in other Applications\n\nImport nbne module in your application and train model with:\n\n```python\n from nbne import train_model\n train_model(graph, num_permutations)\n```\n\nWhere graph should be a networkx graph. To save the model in an output file:\nImport nbne module in your application and train model with:\n\n```python\n from nbne import train_model\n import networkx as nx\n graph = nx.watts_strogatz_graph(1000, 50, 0.2)\n train_model(graph, num_permutations, output_name)\n```\n\n### Input\n\nInput should be a edgelist with format:\n\n```\n node1_id node2_id\n node1_id node3_id\n node2_id node3_id\n```\n\n### Output\n\nThe output is a document with `n+1` lines. The first has format:\n\n```\n num_nodes embeddings_size\n```\n\nAnd the other:\n\n```\n node_id embedding\n```\n\nWhere `embedding` is a space separated vector with dimension `d`, i.e. `d1 d2 d3 ... dn`.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tiagopms/nbne", "keywords": "graphs node embeddings machine learning link prediction", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "nbne", "package_url": "https://pypi.org/project/nbne/", "platform": "", "project_url": "https://pypi.org/project/nbne/", "project_urls": { "Homepage": "https://github.com/tiagopms/nbne" }, "release_url": "https://pypi.org/project/nbne/0.81/", "requires_dist": [ "networkx", "gensim" ], "requires_python": "", "summary": "Method to create representations for nodes in a graph, using Neighbor Based Node Embeddings (NBNE) method.", "version": "0.81" }, "last_serial": 3788988, "releases": { "0.81": [ { "comment_text": "", "digests": { "md5": "7e01eba3e7f9a324be22a388bc8fe07c", "sha256": "334a4567a094fc324631ad2a3115291cc0d431076f3106a4df3fcd271aecda2a" }, "downloads": -1, "filename": "nbne-0.81-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7e01eba3e7f9a324be22a388bc8fe07c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4392, "upload_time": "2018-04-22T13:59:22", "url": "https://files.pythonhosted.org/packages/36/9b/7642fd69a39d074157adb47749aac30178c718fb72209e2d15081c394509/nbne-0.81-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c51649372712be56860680e0d4903fe6", "sha256": "30ee752c814f783b83c25c9dc6a5ebce54dc1d71fcadd37eb7fc7bceca156518" }, "downloads": -1, "filename": "nbne-0.81.tar.gz", "has_sig": false, "md5_digest": "c51649372712be56860680e0d4903fe6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3717, "upload_time": "2018-04-22T13:59:23", "url": "https://files.pythonhosted.org/packages/52/bf/9065a169c35c8f43635ad593f3e4350fc72fc1699e83dd5c0edef1e59dee/nbne-0.81.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7e01eba3e7f9a324be22a388bc8fe07c", "sha256": "334a4567a094fc324631ad2a3115291cc0d431076f3106a4df3fcd271aecda2a" }, "downloads": -1, "filename": "nbne-0.81-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7e01eba3e7f9a324be22a388bc8fe07c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4392, "upload_time": "2018-04-22T13:59:22", "url": "https://files.pythonhosted.org/packages/36/9b/7642fd69a39d074157adb47749aac30178c718fb72209e2d15081c394509/nbne-0.81-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c51649372712be56860680e0d4903fe6", "sha256": "30ee752c814f783b83c25c9dc6a5ebce54dc1d71fcadd37eb7fc7bceca156518" }, "downloads": -1, "filename": "nbne-0.81.tar.gz", "has_sig": false, "md5_digest": "c51649372712be56860680e0d4903fe6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3717, "upload_time": "2018-04-22T13:59:23", "url": "https://files.pythonhosted.org/packages/52/bf/9065a169c35c8f43635ad593f3e4350fc72fc1699e83dd5c0edef1e59dee/nbne-0.81.tar.gz" } ] }