torch_geometric.nn.models.ARGA
- class ARGA(encoder: Module, discriminator: Module, decoder: Optional[Module] = None)[source]
Bases:
GAEThe Adversarially Regularized Graph Auto-Encoder model from the “Adversarially Regularized Graph Autoencoder for Graph Embedding” paper.
- Parameters:
encoder (torch.nn.Module) – The encoder module.
discriminator (torch.nn.Module) – The discriminator module.
decoder (torch.nn.Module, optional) – The decoder module. If set to
None, will default to thetorch_geometric.nn.models.InnerProductDecoder. (default:None)
- forward(*args, **kwargs) Tensor
Alias for
encode().