UniGAT
- class dhg.models.UniGAT(*args, **kwargs)[source]
Bases:
torch.nn.ModuleThe UniGAT model proposed in UniGNN: a Unified Framework for Graph and Hypergraph Neural Networks paper (IJCAI 2021).
- Parameters
in_channels (
int) – \(C_{in}\) is the number of input channels.hid_channels (
int) – \(C_{hid}\) is the number of hidden channels.num_classes (
int) – The Number of class of the classification task.num_heads (
int) – The Number of attention head in each layer.use_bn (
bool) – If set toTrue, use batch normalization. Defaults toFalse.drop_rate (
float) – The dropout probability. Defaults to0.5.atten_neg_slope (
float) – Hyper-parameter of theLeakyReLUactivation of edge attention. Defaults to 0.2.