chanzuckerberg / cellxgene-census

CZ CELLxGENE Discover Census
https://chanzuckerberg.github.io/cellxgene-census/
MIT License
72 stars 18 forks source link

[pytorch] Add encoders for X #1219

Open ebezzi opened 3 days ago

ebezzi commented 3 days ago

Description

It would be useful to add custom encoders not only for obs, but also for the X matrix. This would allow e.g. to let the user decide whether they want a sparse or a dense without relying on a flag (currently return_sparse_X), provide a different formats for sparse matrices, etc.