Dataset classes: .data#
The ggml_ot.data module provides classes and functions for creating, handling, and processing datasets for ggml-ot. These classes can be created from both AnnData objects and synthetic data and are compatible with PyTorch. The module also provides methods to split datasets, train and test models and download datasets.
TripletDataset#
Dataset to train GGML based on AnnData. |
|
Dataset to train GGML based on array data. |
CELLxGENE interface#
Download and cache an AnnData object from CELLxGENE. |
Included example datasets#
Curated CELLxGENE cohort shortcuts that download the data and return a
ready-to-train AnnData_TripletDataset. See
References for the source publication of each cohort.
Load the curated CELLxGENE breast-cancer cohort. |
|
Load the curated CELLxGENE COVID-19 cohort. |
|
Load the curated CELLxGENE myocardial-infarction cohort. |
|
Load the curated CELLxGENE kidney-injury cohort. |
Generate synthetic data#
Generates distributions, labels and weights from synthetic data. |
|
Create a GGML dataset from the synthetic GMM generator. |