d32f8acd01027cff01fccf351d9c3c1926f68379,art/poison_detection/poison_filtering_defence.py,PoisonFilteringDefence,set_params,#PoisonFilteringDefence#,83

Before Change


        for key, value in kwargs.items():
            if key in self.defence_params:
                setattr(self, key, value)
        return True

    def get_params(self) -> Dict[str, Any]:
        
        Returns dictionary of parameters used to run defence.

After Change


        for key, value in kwargs.items():
            if key in self.defence_params:
                setattr(self, key, value)
        if hasattr(self, "_check_params"):
            self._check_params()

    def get_params(self) -> Dict[str, Any]:
        
        Returns dictionary of parameters used to run defence.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: d32f8acd01027cff01fccf351d9c3c1926f68379
Time: 2020-05-09
Author: irinutza.n@gmail.com
File Name: art/poison_detection/poison_filtering_defence.py
Class Name: PoisonFilteringDefence
Method Name: set_params


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: a00c00416a28ce7a97298b337a88720062db2f0f
Time: 2020-05-09
Author: irinutza.n@gmail.com
File Name: art/defences/postprocessor/postprocessor.py
Class Name: Postprocessor
Method Name: set_params


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: d8366377f8ae2ba3ddb89bbe15ceb96e5fbb0352
Time: 2020-05-09
Author: irinutza.n@gmail.com
File Name: art/defences/preprocessor/preprocessor.py
Class Name: Preprocessor
Method Name: set_params


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 2c5bd875ce898b3e87f33660aa6fa4a29d073856
Time: 2020-05-09
Author: irinutza.n@gmail.com
File Name: art/defences/transformer/transformer.py
Class Name: Transformer
Method Name: set_params