ARGA
¶
ARGA(encoder: Module, discriminator: Module, decoder: Optional[Module] = None)
Bases: GAE
The Adversarially Regularized Graph Auto-Encoder model from the "Adversarially Regularized Graph Autoencoder for Graph Embedding" paper.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
encoder
|
Module
|
The encoder module. |
required |
discriminator
|
Module
|
The discriminator module, mapping latent embeddings to one logit per node. |
required |
decoder
|
Optional[Module]
|
The decoder module. Default: |
None
|
Methods:
| Name | Description |
|---|---|
reg_loss |
Regularization loss of the encoder: fooling the discriminator. |
discriminator_loss |
Loss of the discriminator, telling Gaussian samples (real) from |
Source code in mlx_graphs/nn/models/autoencoder.py
reg_loss
¶
Regularization loss of the encoder: fooling the discriminator.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
z
|
array
|
The latent space \(\mathbf{Z}\) |
required |
Source code in mlx_graphs/nn/models/autoencoder.py
discriminator_loss
¶
Loss of the discriminator, telling Gaussian samples (real) from
latent embeddings (fake). No gradient flows into z.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
z
|
array
|
The latent space \(\mathbf{Z}\) |
required |
Source code in mlx_graphs/nn/models/autoencoder.py
from mlx_graphs.nn import ARGA · mlx_graphs/nn/models/autoencoder.py