Giter VIP home page Giter VIP logo

Comments (2)

Noisyntrain avatar Noisyntrain commented on May 30, 2024 1

Hi, miquelduranfrigola. Thank you for using PaddleHelix. Does the 'fingerprint' or 'descriptor' mean that the final molecule representation learnt by the model? If so, you can get that by adding several lines to the code.
Let's use the gem model as an example(suppose you are using GeoPredModel to train and GeoGNN model as its compound encoder). In 156:

return node_repr, edge_repr, graph_repr

the GeoGNN model returns the graph representation, and that might be the 'fingerprint' or 'descriptor' you want. Therefore, you can replace the line with return loss, graph_repr to get the representation of the molecule of current batch. Then you can use some code to collect all batchs' representation and you will get the representation of every molecule in the dataset you are using.
Hope this can be helpful to you.

from paddlehelix.

miquelduranfrigola avatar miquelduranfrigola commented on May 30, 2024

Hello @Noisyntrain - apologies for my late reply. We are working on this at the moment, thanks for your help! I will let you know if we encounter any problems, but your solution looks neat!

from paddlehelix.

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.