1d566db0928a48e4c9382b2d4fac1a07e4e592b4,src/defences/spatial_smoothing.py,SpatialSmoothing,__call__,#SpatialSmoothing#Any#Any#,23
Before Change
:return: Smoothed sample
:rtype: np.ndarray
self.set_params(window_size=window_size)
size = (1, window_size, window_size, 1)
result = ndimage.filters.median_filter(x_val, size=size, mode="reflect")
return result
After Change
:return: Smoothed sample
:rtype: np.ndarray
if window_size is not None:
self.set_params(window_size=window_size)
size = (1, self.window_size, self.window_size, 1)
result = ndimage.filters.median_filter(x_val, size=size, mode="reflect")
return result
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 1d566db0928a48e4c9382b2d4fac1a07e4e592b4
Time: 2018-03-30
Author: Maria-Irina.Nicolae@ibm.com
File Name: src/defences/spatial_smoothing.py
Class Name: SpatialSmoothing
Method Name: __call__
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 1d566db0928a48e4c9382b2d4fac1a07e4e592b4
Time: 2018-03-30
Author: Maria-Irina.Nicolae@ibm.com
File Name: src/defences/feature_squeezing.py
Class Name: FeatureSqueezing
Method Name: _tf_predict
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 1d566db0928a48e4c9382b2d4fac1a07e4e592b4
Time: 2018-03-30
Author: Maria-Irina.Nicolae@ibm.com
File Name: src/defences/feature_squeezing.py
Class Name: FeatureSqueezing
Method Name: __call__
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 1d566db0928a48e4c9382b2d4fac1a07e4e592b4
Time: 2018-03-30
Author: Maria-Irina.Nicolae@ibm.com
File Name: src/defences/spatial_smoothing.py
Class Name: SpatialSmoothing
Method Name: __call__