Giter Club home page Giter Club logo

Comments (4)

RexYing avatar RexYing commented on August 20, 2024

Hi,

We did that in another paper (Graph Convolutional Neural Networks for Web-Scale Recommender Systems).
If you need a quick version, you can simply have each GPU run the model for a different minibatch, do an average of the gradients, and make updates.

Of course you can apply EASGD or other more sophisticated distributed optimization algorithm. It should be no different to doing distributed optimization for other models.

from graphsage.

ngdovan avatar ngdovan commented on August 20, 2024

Thank you for the response!

from graphsage.

qzshadow avatar qzshadow commented on August 20, 2024

Hi William, RexYing
Will the code for Graph Convolutional Neural Networks for Web-Scale Recommender Systems be published? When I try a big graph with 16000 features for each node, I still have the memory problem because features passed into SupervisedGraphsage class are still as a whole, not in a mini-batch style. e.g.

# line 163 of supervised_train.py
 model = SupervisedGraphsage(num_classes, placeholders, 
                features,
                adj_info,
                minibatch.deg,
                layer_infos, 
                model_size=FLAGS.model_size,
                sigmoid_loss = FLAGS.sigmoid,
                identity_dim = FLAGS.identity_dim,
                logging=True)

the parameter features has the shape of [num_samples, nm_features], which will cause the memory error when the graph is huge. Any suggestions for this problem?

from graphsage.

RexYing avatar RexYing commented on August 20, 2024

We were unable to make a standalone PinSage code repo since the code is deeply integrated into the SNAP platform that Pinterest used, as well as other pipelines such as LSH and Pixie.

You are right. You need to do re-indexing of the adjacency (only the nodes in the neighborhood of the minibatch of nodes), and extract the features used in the node neighborhood in the minibatch.

The details are in the PinSage paper as well. Let me know if you have difficulty implementing it.

from graphsage.

Related Issues (20)

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.