openphilanthropy / unrestricted-adversarial-examples

Contest Proposal and infrastructure for the Unrestricted Adversarial Examples Challenge
Apache License 2.0
327 stars 62 forks source link

Refactor mnist two_class_iterator for readability #39

Closed nottombrown closed 5 years ago

nottombrown commented 5 years ago

Small refactor with the goal of improved readability.

nottombrown commented 5 years ago

cc @carlini

My thinking on this is to mirror the api that we expose in the bird_or_bicycle dataset:

https://github.com/google/unrestricted-adversarial-examples/blob/master/bird-or-bicycle/bird_or_bicycle/iterator.py#L24

carlini commented 5 years ago

That makes sense to me.