Utility layer calculating a single channel of the diffusional convolution.
Procedure is based on https://arxiv.org/abs/1707.01926
Input
Node features of shape ([batch], N, F)
;
Normalized adjacency or attention coef. matrix \mjeqn\hat A of shape
([batch], N, N)
; Use DiffusionConvolution.preprocess to normalize.
Output
Node features with the same shape as the input, but with the last dimension changed to \mjeqn1.
1 2 3 4 5 6 7 8 | layer_diffuse_features(
object,
num_diffusion_steps,
kernel_initializer,
kernel_regularizer,
kernel_constraint,
...
)
|
num_diffusion_steps |
How many diffusion steps to consider. \(K\) in paper. |
kernel_initializer |
initializer for the weights |
kernel_regularizer |
regularization applied to the kernel vectors |
kernel_constraint |
constraint applied to the kernel vectors |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.