pygip.models package¶
Subpackages¶
- pygip.models.attack package
- Subpackages
- Submodules
- pygip.models.attack.AdvMEA module
- pygip.models.attack.CEGA module
CEGA
GCN_drop
GcnNet
accuracy()
attack0()
aug_normalized_adjacency()
aug_random_walk()
calculate_entropy()
compute_distance()
compute_rank()
convert_pyg_to_dgl()
evaluate()
find_short_dist()
get_current_neighbors_1()
get_current_neighbors_dense()
get_entropy_contribute()
get_max_info_entropy_node_set()
get_max_nnd_node_dense()
get_receptive_fields_dense()
init_mask()
load_data()
load_data_from_grain()
normalize()
page_rank()
parse_index_file()
perturb_avg()
perturb_features()
quantile_selection()
rank_centrality()
rank_cluster()
rank_density()
rank_diversity()
rank_entropy()
rank_perturb()
set_seed()
sparse_mx_to_torch_sparse_tensor()
update_sub_train_mask()
- pygip.models.attack.DataFreeMEA module
- pygip.models.attack.base module
BaseAttack
BaseAttack.supported_api_types
BaseAttack.supported_datasets
BaseAttack.device
BaseAttack.dataset
BaseAttack.graph_dataset
BaseAttack.graph_data
BaseAttack.num_nodes
BaseAttack.num_features
BaseAttack.num_classes
BaseAttack.attack_node_fraction
BaseAttack.model_path
BaseAttack._abc_impl
BaseAttack._check_dataset_compatibility()
BaseAttack._load_model()
BaseAttack._train_attack_model()
BaseAttack._train_target_model()
BaseAttack.attack()
BaseAttack.supported_api_types
BaseAttack.supported_datasets
- Module contents
AdvMEA
CEGA
DFEATypeI
DFEATypeII
DFEATypeIII
ModelExtractionAttack0
ModelExtractionAttack1
ModelExtractionAttack2
ModelExtractionAttack3
ModelExtractionAttack4
ModelExtractionAttack5
RealisticAttack
RealisticAttack._abc_impl
RealisticAttack.add_potential_edges()
RealisticAttack.attack()
RealisticAttack.compute_cosine_similarity()
RealisticAttack.evaluate_attack()
RealisticAttack.generate_candidate_edges()
RealisticAttack.simulate_target_model_queries()
RealisticAttack.supported_api_types
RealisticAttack.supported_datasets
RealisticAttack.train_edge_predictor()
RealisticAttack.train_surrogate_model()
- pygip.models.defense package
- Subpackages
- Submodules
- pygip.models.defense.BackdoorWM module
- pygip.models.defense.ImperceptibleWM module
- pygip.models.defense.ImperceptibleWM2 module
ImperceptibleWM2
ImperceptibleWM2._abc_impl
ImperceptibleWM2._calculate_embedding_loss()
ImperceptibleWM2._calculate_generation_loss_integrated()
ImperceptibleWM2._calculate_imperception_loss()
ImperceptibleWM2._calculate_regulation_loss()
ImperceptibleWM2._calculate_trigger_loss()
ImperceptibleWM2._construct_backdoor_graph()
ImperceptibleWM2._create_temp_trigger_graph()
ImperceptibleWM2._evaluate_model_on_graph()
ImperceptibleWM2._evaluate_with_metrics()
ImperceptibleWM2._generate_trigger_graph()
ImperceptibleWM2._inner_optimization()
ImperceptibleWM2._select_poisoning_nodes()
ImperceptibleWM2._train_defense_model()
ImperceptibleWM2._train_target_model()
ImperceptibleWM2.defend()
ImperceptibleWM2.verify_ownership()
TriggerGenerator
- pygip.models.defense.RandomWM module
- pygip.models.defense.SurviveWM module
- pygip.models.defense.SurviveWM2 module
- pygip.models.defense.base module
- Module contents
ATOM
BackdoorWM
ImperceptibleWM
ImperceptibleWM2
ImperceptibleWM2._abc_impl
ImperceptibleWM2._calculate_embedding_loss()
ImperceptibleWM2._calculate_generation_loss_integrated()
ImperceptibleWM2._calculate_imperception_loss()
ImperceptibleWM2._calculate_regulation_loss()
ImperceptibleWM2._calculate_trigger_loss()
ImperceptibleWM2._construct_backdoor_graph()
ImperceptibleWM2._create_temp_trigger_graph()
ImperceptibleWM2._evaluate_model_on_graph()
ImperceptibleWM2._evaluate_with_metrics()
ImperceptibleWM2._generate_trigger_graph()
ImperceptibleWM2._inner_optimization()
ImperceptibleWM2._select_poisoning_nodes()
ImperceptibleWM2._train_defense_model()
ImperceptibleWM2._train_target_model()
ImperceptibleWM2.defend()
ImperceptibleWM2.verify_ownership()
RandomWM
SurviveWM
SurviveWM2
- pygip.models.nn package