roksana.attack_methods.custom_attack
MyCustomAttack Module
This module provides an example of how to implement a custom graph attack algorithm. Custom routines should inherit from the BaseAttack class and override the execute method to define the attack logic.
- Classes:
MyCustomAttack: An example implementation of a custom attack.
- Usage:
from custom_attack import MyCustomAttack
attack = MyCustomAttack() result = attack.execute(data, params={‘custom_param’: ‘value’}) ———————————————————————-
Classes
|
MyCustomAttack Class Example implementation of a custom attack. This class demonstrates how to inherit from the BaseAttack class and implement the execute method for modifying a graph dataset. |