pygip.models.attack.AdvMEA

Module Attributes

class pygip.models.attack.AdvMEA.AdvMEA(dataset, attack_node_fraction, model_path=None)[source]

Bases: BaseAttack

_abc_impl = <_abc_data object>
_load_model(model_path)[source]

Load a pre-trained model.

_to_cpu(tensor)[source]

Safely move tensor to CPU for NumPy operations

_train_target_model()[source]

Train the target model (GCN) on the original graph.

attack()[source]

Execute the attack.

supported_api_types = {'dgl'}