scglue.models.scglue.SCGLUEModel.encode_graph
- SCGLUEModel.encode_graph(graph, n_sample=None)[源代码]
Compute graph (feature) embedding
- 参数:
graph (
Graph
) – Input graphn_sample (
typing.Optional
[int
]) – Number of samples from the embedding distribution, by defaultNone
, returns the mean of the embedding distribution.
- 返回类型:
- 返回:
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
.