Coder Social home page Coder Social logo

Random seed about scarches HOT 2 CLOSED

theislab avatar theislab commented on May 24, 2024
Random seed

from scarches.

Comments (2)

M0hammadL avatar M0hammadL commented on May 24, 2024 1

@mxposed

ok, I added a feature in which you get the fixed z as I explained. You need to set
return_mean = True in network.get_latent(reference_adata,condition_key, return_mean=True)

please pull from repo to have this feature :)

from scarches.

M0hammadL avatar M0hammadL commented on May 24, 2024

Hi Nik,

This comes up due to the underlying structure of get_latent function. When you project a cell to latent space you have a fixed value for that cell in z, however since the model is generative, a noise term will be added to this z. Thus, you have z = z_fix + N(0,1) in which N(0,1) is a sample from a random Gaussian that is why you get different values every time you use get_latent. There is a way to avoid this that I provide the ability to either get z or z_fix. However, in total there should not be a big difference that avoids reproducibility.

from scarches.

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.