545779304add1a426c64c21b81000156369e1c65,unrestricted-advex/unrestricted_advex/eval_kit.py,,evaluate_tcu_images_model,#Any#Any#Any#,117
Before Change
def evaluate_tcu_images_model(model_fn, dataset_iter, model_fn_name=None):
spsa_attack = attacks.SpsaAttack(model_fn, (224, 224, 3))
return evaluate_tcu_model(model_fn, dataset_iter, [
(attacks.null_attack, "null_attack"),
// (attacks.spatial_attack, "spatial_attack"),
// (spsa_attack, "spsa_attack"),
After Change
def evaluate_tcu_images_model(model_fn, dataset_iter, model_fn_name=None):
return evaluate_tcu_model(model_fn, dataset_iter, model_fn_name= model_fn_name, attacks=[
attacks.NullAttack(),
attacks.SpsaAttack(
model_fn,
image_shape_hwc=(224, 224, 3),
epsilon=(16. / 255)),
attacks.SpatialGridAttack(
image_shape_hwc=(224, 224, 3),
spatial_limits=[18, 18, 30],
grid_granularity=[5, 5, 31],
black_border_size=0)
])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: google/unrestricted-adversarial-examples
Commit Name: 545779304add1a426c64c21b81000156369e1c65
Time: 2018-08-28
Author: nottombrown@gmail.com
File Name: unrestricted-advex/unrestricted_advex/eval_kit.py
Class Name:
Method Name: evaluate_tcu_images_model
Project Name: google/unrestricted-adversarial-examples
Commit Name: cacea7bddf3cadee7d19e50142dcce10fe1ed1c0
Time: 2018-09-12
Author: nottombrown@gmail.com
File Name: unrestricted-advex/unrestricted_advex/tests/test_two_class_mnist.py
Class Name:
Method Name: test_two_class_mnist
Project Name: google/unrestricted-adversarial-examples
Commit Name: 545779304add1a426c64c21b81000156369e1c65
Time: 2018-08-28
Author: nottombrown@gmail.com
File Name: unrestricted-advex/unrestricted_advex/eval_kit.py
Class Name:
Method Name: evaluate_tcu_mnist_model