Comments (4)
Hi, thank you for reporting it. First question: I assume correctly that you don’t get incorrect values but you get a ValueError as you have a shape mismatch. This is happening during construction of the pandas.DataFrame. Can you copy the exact error message? It should happen for raw_normalized_mean but also the two other means in the function (or are your size factors zero?)
from scvi-tools.
RuntimeWarning: divide by zero encountered in divide
scaling_factor = 1 / np.asarray(data.sum(axis=1)).ravel().reshape(-1, 1)
I think np.divide(np.asarray(data.sum(axis=1)).ravel().reshape(-1, 1), 1) should be used to replace 1 / np.asarray(data.sum(axis=1 )).ravel().reshape(-1, 1) to avoid this error
from scvi-tools.
This means that your data contains cells without any count. Is it meaningful for your model to input cells without counts (I assume it’s due to your highly variable gene selection)? I would highly recommend to filter to min_counts before training the model as otherwise training might be unstable.
@martinkim0 We could add a check and print a warning when setting up a model if cells contain less than let’s say 30 counts.
from scvi-tools.
Thanks
from scvi-tools.
Related Issues (20)
- 'SCVI' object has no attribute 'eval' HOT 2
- Assistance Required with scvi-tools GPU Setup on Ubuntu HOT 7
- Can we have a scVI with reconstruction distirbution as normal distribution? HOT 4
- Consider non-jitting MRVI tests/long tests pytest flag
- Jax version of VAEMixin
- Scvi in R doesn't update to scvi-tools even after uninstalling and reinstalling (I think :) HOT 3
- flax: Trying to access a property that is accessing a non-existent attribute. - JaxBaseModuleClass HOT 2
- AttributeError: module 'scvi' has no attribute 'autotune' HOT 3
- Support for weighted loss either per-batch or per-cell? HOT 1
- poor integration effect cross species HOT 2
- Issues installing recommended packages HOT 4
- Support the latest version of torchmetrics
- different hidden unit in each layer HOT 1
- cannot import name 'MRVI' from 'scvi.external' HOT 2
- bug for custom classifier in adversarial training plan HOT 2
- Error saving MrVI model HOT 2
- ImportError: cannot import name 'packaging' from 'pkg_resources' for Model Tuning using Ray HOT 4
- Issues in Load Dataset with SeuratData and convert to adata HOT 2
- Release 1.1.3
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 scvi-tools.