e6a1a4bb326d673a029ca05f90d9e3930a89333b,cleverhans/attacks.py,CarliniWagnerL2,generate,#CarliniWagnerL2#Any#,618

Before Change



        if "y" in kwargs and "y_target" in kwargs:
            raise ValueError("Can not set both "y" and "y_target".")
        elif "y" in kwargs:
            labels = kwargs["y"]
        elif "y_target" in kwargs:
            labels = kwargs["y_target"]

After Change


        from .attacks_tf import CarliniWagnerL2 as CWL2
        self.parse_params(**kwargs)

        labels, nb_classes = self.get_labels(x, kwargs)

        attack = CWL2(self.sess, self.model, self.batch_size,
                      self.confidence, "y_target" in kwargs,
                      self.learning_rate, self.binary_search_steps,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/cleverhans
Commit Name: e6a1a4bb326d673a029ca05f90d9e3930a89333b
Time: 2017-08-14
Author: nicholas@carlini.com
File Name: cleverhans/attacks.py
Class Name: CarliniWagnerL2
Method Name: generate


Project Name: ysig/GraKeL
Commit Name: e69f57395d899146ad1ca9e6409eb87f4f298a43
Time: 2018-02-05
Author: y.siglidis@gmail.com
File Name: grakel/kernels/weisfeiler_lehman.py
Class Name: weisfeiler_lehman
Method Name: parse_input


Project Name: has2k1/plotnine
Commit Name: 7fe5355c5fbfa9bf85f0b0eb9523ff6f35f33788
Time: 2014-06-13
Author: jonas@ifany.org
File Name: ggplot/components/colors.py
Class Name:
Method Name: assign_colors