cellxgene_census.experimental.ml.pytorch.Stats

class cellxgene_census.experimental.ml.pytorch.Stats(n_obs: int = 0, nnz: int = 0, elapsed: float = 0, n_soma_chunks: int = 0)

Statistics about the data retrieved by ExperimentDataPipe via SOMA API. This is useful for assessing the read throughput of SOMA data.

Lifecycle

experimental

__init__(n_obs: int = 0, nnz: int = 0, elapsed: float = 0, n_soma_chunks: int = 0) None

Method generated by attrs for class Stats.

Methods

__init__([n_obs, nnz, elapsed, n_soma_chunks])

Method generated by attrs for class Stats.

Attributes

n_obs

The total number of obs rows retrieved

nnz

The total number of values retrieved

elapsed

The total elapsed time in seconds for retrieving all batches

n_soma_chunks

The number of chunks retrieved