BaseGDA(in_dim, hid_dim, num_classes, num_layers=2, dropout=0.0, weight_decay=0.0, act=F.relu, lr=0.004, epoch=100, device='cuda:0', batch_size=0, num_neigh=-1, verbose=2, **kwargs)
Bases: ABC
Abstract Class for Graph Domain Adaptation.
| Parameters: |
|
|---|
fit(data, **kwargs)
Training the graph neural network.
| Parameters: |
|
|---|
forward_model(data, **kwargs)
abstractmethod
Forward pass of the graph neural network.
| Parameters: |
|
|---|
| Returns: |
|
|---|
init_model(**kwargs)
abstractmethod
Initialize the graph neural network.
| Returns: |
|
|---|
predict(data, **kwargs)
Prediction for testing graph using the fitted graph domain adaptation model. Return predicted labels and probabilities by default.
| Parameters: |
|
|---|
| Returns: |
|
|---|
process_graph(data, **kwargs)
abstractmethod
Data preprocessing for the input graph.
| Parameters: |
|
|---|