Source code for aijack.attack.base_attack
from abc import ABCMeta, abstractmethod
[docs]class BaseAttacker(metaclass=ABCMeta):
def __init__(self, target_model):
"""attacker against ml model
Args:
target_model: target ML model
"""
self.target_model = target_model
[docs] @abstractmethod
def attack(self):
pass