Giter Site home page Giter Site logo

Comments (6)

MUCDK avatar MUCDK commented on August 21, 2024

Hi @Xian123123123 ,

I guess that you just wanna have the transport matrix then?

You can access this via tp[t_0, t_1].solution.transport_matrix, see https://moscot.readthedocs.io/en/latest/genapi/moscot.backends.ott.OTTOutput.transport_matrix.html#moscot.backends.ott.OTTOutput.transport_matrix

from moscot.

Xian123123123 avatar Xian123123123 commented on August 21, 2024

Yes. Could you share an example code? Thanks.

from moscot.

Xian123123123 avatar Xian123123123 commented on August 21, 2024

Thank you @MUCDK , how can I generate the full transport matrix from 700_tutorial_perturbation_with_Sinkhorn.ipynb (i.e. between a drug and the control)?

from moscot.

MUCDK avatar MUCDK commented on August 21, 2024

you can use e.g. sp['Dacinostat (LAQ824)', 'control'].solution.transport_matrix

from moscot.

Xian123123123 avatar Xian123123123 commented on August 21, 2024

thank you @MUCDK. with the full transport matrix, how does one decide which link is "real", i.e. how does one define a threshold?

from moscot.

MUCDK avatar MUCDK commented on August 21, 2024

First, this depends on the entropy regularisation. The higher epsilon is, the higher the stochasticity . Hence, there is no single answer to this.

You could take the argmax for each row, or use the sparsification method to set a large number of the entries to 0: https://moscot.readthedocs.io/en/latest/genapi/moscot.base.output.BaseSolverOutput.sparsify.html#moscot.base.output.BaseSolverOutput.sparsify

from moscot.

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.