scglue.models.scglue.SCGLUEModel.get_losses

SCGLUEModel.get_losses(adatas, graph, neg_samples=10, data_batch_size=128, graph_batch_size='AUTO')[source]

Compute loss function values

Parameters:
  • adatas (typing.Mapping[str, AnnData]) – Datasets (indexed by modality name)

  • graph (Graph) – Guidance graph

  • neg_samples (int) – Number of negative samples for each edge

  • data_batch_size (int) – Number of cells in each data minibatch

  • graph_batch_size (int) – Number of edges in each graph minibatch

Return type:

typing.Mapping[str, numpy.ndarray]

Returns:

losses – Loss function values