Comments (2)
yes, I agree with you @giovp, batch-wise evaluation isn't really the way to go, this can only be a temporary fix. For me personally, materializing the transport matrix before calling .pull
is the best solution, as long as the matrix fits into memory.
from moscot.
hi @Marius1311 , yes I observed this as well multiple times and reported it in private to @michalk8 as well
Note that passing a batch size does not help much - let's say I'm passing batch_size=500, then this would still request an array of shape 2039 x 500 x 13298, which still requires over 50GB of memory. Also, this this slows down solving the actual OT problem, which would not be necessary from a memory point of view.
I talked to @michalk8 about this and it's probably a vmap that creates an array of the wrong shape. For now, we could solve this by evaluating the pull batch-wise over small sets of genes. This is inefficient, but would solve the issue for now.
and yes, I also think that this is due to vmap. I think this is true also for GW problems and also not only for imputation but also e.g. for cell transition in my experience. Basically anywhere you want to apply the transport matrix
For now, we could solve this by evaluating the pull batch-wise over small sets of genes. This is inefficient, but would solve the issue for now.
this is a solution but would require considerable amount of work as there are various mixin methods that use that operation
from moscot.
Related Issues (20)
- Buggy Test: test_gw_problem gives joint_attr HOT 1
- Buggy Test: `scale_cost` given to prepare in tests/problems/time/test_mixins.py HOT 1
- check the convergence flag
- change links to papers
- adapt low rank gamma default for linear problems HOT 1
- describe birth death process better HOT 1
- Extract the cells in the trace HOT 4
- adapt user guide
- Refactor: Check if both x and x_callback is given
- Refactor: Maybe GW should inherit from FGW instead of vice versa HOT 2
- check for failing tests HOT 1
- check for unrecognized in `solve` methods
- check for warnings thrown by us
- Add Elastic Costs again or asses if they are necessary or not HOT 2
- Plotting Tests Fail HOT 1
- output the raw cell transition data without aggregation HOT 6
- Full rank initializers
- bug when using tp.compute_interpolated_distance HOT 7
- Questions about patient manifold.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from moscot.