scglue.models.scglue.SCGLUEModel.encode_graph¶
-
SCGLUEModel.
encode_graph
(graph, edge_weight='weight', edge_sign='sign', n_sample=None)[source]¶ Compute graph (feature) embedding
- Parameters
- Return type
- Returns
graph_embedding – Graph (feature) embedding with shape \(n_{feature} \times n_{dim}\) if
n_sample
isNone
, or shape \(n_{feature} \times n_{sample} \times n_{dim}\) ifn_sample
is notNone
.