Code Monkey home page Code Monkey logo

Comments (3)

UCDNJJ avatar UCDNJJ commented on June 11, 2024

Hi @hui2000ji ,

I see the issue, the problem is in saving the embeddings. I am going to move the l2-norm into the batch-wise for loop of encoderModel_calc_embedding in backend_encoder.R. This will also better agree with the batch-wise l2-norm being performed during training. I am going run a few unit tests then an update should be pushed early tomorrow.

Also, I think this should only be an issue for train_encoder_multi.R, unless you are setting: scAlignOptions(full.norm = TRUE). scAlignOptions(norm = TRUE, full.norm = FALSE) performs only per-batch l2-norm during training and is the default parameterization.

from scalign.

hui2000ji avatar hui2000ji commented on June 11, 2024

I think this sort of does the job: #14

from scalign.

UCDNJJ avatar UCDNJJ commented on June 11, 2024

I've pushed an update which passed the unit tests we have for the tutorial datasets. This should fix the memory issues you were having. Let us know if it doesn't!

Thanks for taking the time to modify the code, our updates were very similar! Hopefully we will have some time to port this code to TF 2.0 and remove tensorflow for R which has caused a few issues now.

from scalign.

Related Issues (10)

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.