UniGINConv
- class dhg.nn.UniGINConv(*args, **kwargs)[source]
Bases:
torch.nn.ModuleThe UniGIN convolution layer proposed in UniGNN: a Unified Framework for Graph and Hypergraph Neural Networks paper (IJCAI 2021).
Sparse Format:
\[\begin{split}\left\{ \begin{aligned} h_{e} &= \frac{1}{|e|} \sum_{j \in e} x_{j} \\ \tilde{x}_{i} &= W\left((1+\varepsilon) x_{i}+\sum_{e \in E_{i}} h_{e}\right) \end{aligned} \right. .\end{split}\]Matrix Format:
\[\mathbf{X}^{\prime} = \sigma \left( \left( \left( \mathbf{I} + \varepsilon \right) + \mathbf{H} \mathbf{D}_e^{-1} \mathbf{H}^\top \right) \mathbf{X} \mathbf{\Theta} \right) .\]- Parameters
in_channels (
int) – \(C_{in}\) is the number of input channels.out_channels (int) – \(C_{out}\) is the number of output channels.
eps (
float) – \(\varepsilon\) is the learnable parameter. Defaults to0.0.train_eps (
bool) – If set toTrue, the layer will learn the \(\varepsilon\) parameter. Defaults toFalse.bias (
bool) – If set toFalse, the layer will not learn the bias parameter. Defaults toTrue.use_bn (
bool) – If set toTrue, the layer will use batch normalization. Defaults toFalse.drop_rate (
float) – If set to a positive number, the layer will use dropout. Defaults to0.5.is_last (
bool) – If set toTrue, the layer will not apply the final activation and dropout functions. Defaults toFalse.