Giter VIP home page Giter VIP logo

Comments (3)

sacdallago avatar sacdallago commented on August 27, 2024

Ok, I believe the probelm is id2emb[idx]? I used Michael's way of dealing with loading embeddings which is not casting them to a type until this very moment, we could just cast the embeddings to np.arrays when they are loaded. I'll see how far I get to fix this in the inference PR

from biotrainer.

mheinzinger avatar mheinzinger commented on August 27, 2024

Yes, that (concatenating all samples to one long numpy array) will work for per_protein tasks (a list of 10 elements each holding a 1024-d array would became a 10x1024 matrix) but for per_residue tasks, you would need to pad all sequences in your set to the longest sequence. This is usually not the desired behavior which is why I kept this list-structure. I also do not see an easy way around this.

from biotrainer.

SebieF avatar SebieF commented on August 27, 2024

The warning disappeared and the performance seems to be fine, so I will close this issue for now.

from biotrainer.

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.