scglue.models.scglue.SCGLUEModel.get_losses¶
-
SCGLUEModel.
get_losses
(adatas, graph, edge_weight='weight', edge_sign='sign', neg_samples=10, data_batch_size=128, graph_batch_size=- 1)[source]¶ Compute loss function values
- Parameters
adatas (
Mapping
[str
,AnnData
]) – Datasets (indexed by domain name)graph (
Graph
) – Prior graphedge_weight (
str
) – Key of edge attribute for edge weightedge_sign (
str
) – Key of edge attribute for edge signneg_samples (
int
) – Number of negative samples for each edgedata_batch_size (
int
) – Number of cells in each data minibatchgraph_batch_size (
int
) – Number of edges in each graph minibatch
- Return type
- Returns
losses – Loss function values