Giter VIP home page Giter VIP logo

Comments (3)

giovp avatar giovp commented on August 26, 2024

hi @Chengwei94 ,

can you report what are the rest of the parameters for the prepare and solve method?

from moscot.

Chengwei94 avatar Chengwei94 commented on August 26, 2024

Hi, heres the snipppet I am running. I have tried both the temporal and spatial temporal problem. The joint attr is the output of a topic model where theres 50 dimension.

from jax.config import config; config.update("jax_enable_x64", True)

stp = TemporalProblem(adata)
stp = stp.score_genes_for_marginals(
gene_set_proliferation="mouse", gene_set_apoptosis="mouse"
)
adata.obs['time'] = adata.obs.timepoint.astype('str').str[1:].astype('float32').astype('category')
stp = stp.prepare(
time_key="time",
# spatial_key="spatial",
joint_attr="X_stamp",
cost = 'euclidean',
# cost = {"x": "hellinger", "y": "hellinger", "xy":"hellinger"},
device = "cpu",
# callback="local-pca",
)
stp = stp.solve(initializer="rank2", rank = 500)

Im using float64 in jax, as I encoutered an error when im using float32

from moscot.

giovp avatar giovp commented on August 26, 2024

hi @Chengwei94 sorry for late reply, yes the Euclidean cost is expected to take more memory than the squared euclidean. All the costs except the squared euclidean are less memory efficient cause they need to be factorized differently in the low rank cased, so a higher memory requirement is expected. What is the motivation to use euclidean instead of squared euclidean? and would you be able to try with a smaller rank value (e.g. 300) and on GPU? thanks!

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.