GithubHelp home page GithubHelp logo

graph2vec's People

Contributors

allentran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

graph2vec's Issues

Added to KarateClub

https://github.com/benedekrozemberczki/karateclub

Karate Club is an unsupervised machine learning extension library for NetworkX.

Karate Club consists of state-of-the-art methods to do unsupervised learning on graph structured data. To put it simply it is a Swiss Army knife for small-scale graph mining research. First, it provides network embedding techniques at the node and graph level. Second, it includes a variety of overlapping and non-overlapping community detection methods. Implemented methods cover a wide range of network science (NetSci, Complenet), data mining (ICDM, CIKM, KDD), artificial intelligence (AAAI, IJCAI) and machine learning (NeurIPS, ICML, ICLR) conferences, workshops, and pieces from prominent journals.

Fail on parse_graph()

When using parse_graph(), I get a file/directory not found that points to save_mappings() in parser.py. Lines 47 and 49 point to nonexistent file/dir, but this problem persists even if I set the output_dir in creating the Graph2Vec object. I think it's just a matter of addressing the os.path.join(), but not sure. I can have a look later today and submit a pull request if that would help.

No such file or directory: 'data/from.map'

See the traceback below. This doesn't work on Ubuntu 14.04 (AWS GPU instance) running Python 2.7.6.

`In [4]: graph2vec.parse_graph('test.txt', extend_paths=2)

IOError Traceback (most recent call last)
in ()
----> 1 graph2vec.parse_graph('test.txt', extend_paths=2)

/usr/local/lib/python2.7/dist-packages/graph2vec/trainer.pyc in parse_graph(self, graph_path, data_dir, load_edges, extend_paths)
26 graph = parser.Graph(graph_path)
27 self.from_nodes, self.to_nodes = graph.get_mappings()
---> 28 graph.save_mappings(self.output_dir)
29
30 if load_edges:

/usr/local/lib/python2.7/dist-packages/graph2vec/parser.pyc in save_mappings(self, output_dir)
45 def save_mappings(self, output_dir):
46
---> 47 with open(os.path.join(output_dir, 'from.map'), 'w') as from_map_file:
48 json.dump(self.from_nodes_mapping, from_map_file)
49 with open(os.path.join(output_dir, 'to.map'), 'w') as to_map_file:

IOError: [Errno 2] No such file or directory: 'data/from.map'`

NameError: name 'Graph2Vec' is not defined

I installed graph2vec successfully but I cannot use it

import graph2vec.trainer
graph2vec = Graph2Vec(vector_dimensions=128)
Traceback (most recent call last):
File "", line 1, in
NameError: name 'Graph2Vec' is not defined

Training on multiple graphs

Hey, I'm trying to compare separate graph vectors to each other -- do you have to train each one independently? Would that result in the same vector space representation? How could somebody learn on a bunch of different graph structures? I didn't see a way to do this in the Readme, and didn't see how to do it in the source.

Thanks.

Reference to the method implemented?

Hi,

Thanks a lot for the implementation of graph to vector method. I am vaguely familiar with several methods, e.g. Laplacian Eigenmaps and similar methods. The implemented method in this module looks like is matrix factorization style algorithm (?) with square loss (?).

It would be great just to add a reference to a paper/blog which actually describes the method with equations.

Thanks

Python 3.x compatibility

I failed to use graph2vec with python 3.x
A patch is provided:
sed -i 's/cPickle/pickle/g;s/from node_vectors import/from graph2vec.node_vectors import/g' graph2vec-0.0.2/graph2vec/*.py

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.