class_docstr: Abstract base class for adversarial attacks. `Attack` represent an
  adversarial attack which search an adversarial example. subclass should
  implement the _apply() method.
  
  Args:
      model(Model): an instance of the class adversarialbox.base.Model.
class_docstr_tok: ["Abstract","base","class","for","adversarial","attacks",".","`","Attack","`","represent","an","adversarial","attack","which","search","an","adversarial","example",".","subclass","should","implement","the","_apply","(",")","method",".","Args",":","model","(","Model",")",":","an","instance","of","the","class","adversarialbox.base.Model","."]
docstr: Generate the adversarial sample.
  
  Args:
  adversary(object): The adversary object.
  **kwargs: Other named arguments.
docstr_tok: ["Generate","the","adversarial","sample",".","Args",":","adversary","(","object",")",":","The","adversary","object",".","*","*","kwargs",":","Other","named","arguments","."]
code: def __call__(self, adversary, **kwargs):
      """
      Generate the adversarial sample.
  
      Args:
      adversary(object): The adversary object.
      **kwargs: Other named arguments.
      """
      self._preprocess(adversary)
      return self._apply(adversary, **kwargs)
  
file_path: AdvBox/adversarialbox/attacks/base.py
imports: from builtins import object
  import logging
  from abc import ABCMeta
  from abc import abstractmethod
  import numpy
  from future.utils import with_metaclass
label_desc: Use image node_id 2 for calling the Attack obj's underlying member method code with example usage: obj.__call__(adversary) and returns: self