'Take in a dictionary of parameters and applies attack-specific checks
before saving them as attributes.
Attack-specific parameters:
:param theta: (optional float) Perturbation introduced to modified
components (can be positive or negative)
:param gamma: (optional float) Maximum percentage of perturbed features
:param nb_classes: (optional int) Number of model output classes
:param clip_min: (optional float) Minimum component value for clipping
:param clip_max: (optional float) Maximum component value for clipping
:param y_target: (optional) Target tensor if the attack is targeted'

def parse_params(self, theta=1.0, gamma=np.inf, nb_classes=10, clip_min=0.0, clip_max=1.0, y_target=None, **kwargs):

    self.theta = theta
    self.gamma = gamma
    self.nb_classes = nb_classes
    self.clip_min = clip_min
    self.clip_max = clip_max
    self.y_target = y_target
    return True
