pygip.models.defense.base¶ Classes BaseDefense(dataset, attack_node_fraction[, ...]) class pygip.models.defense.base.BaseDefense(dataset, attack_node_fraction, device=None)[source]¶ Bases: ABC _abc_impl = <_abc_data object>¶ _check_dataset_compatibility()[source]¶ _load_model()[source]¶ Load pre-trained model. _train_defense_model()[source]¶ This is an optional method. _train_surrogate_model()[source]¶ This is an optional method. _train_target_model()[source]¶ This is an optional method. abstract defend()[source]¶ Execute the defense mechanism. supported_api_types = {}¶ supported_datasets = {}¶