tensorflow / tcav

Code for the TCAV ML interpretability project
Apache License 2.0
633 stars 150 forks source link

Python 3 incompatibilities #1

Closed cclauss closed 6 years ago

cclauss commented 6 years ago

flake8 testing of https://github.com/tensorflow/tcav on Python 3.6.3

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./tcav.py:96:16: F821 undefined name 'xrange'
      for i in xrange(len(class_acts)):
               ^
./tcav.py:120:14: F821 undefined name 'xrange'
    for i in xrange(len(class_acts)):
             ^
./utils.py:163:62: E901 SyntaxError: invalid syntax
      print '%s: TCAV score: %.2f (+- %.2f), random was %.2f' % (
                                                             ^
1       E901 SyntaxError: invalid syntax
2       F821 undefined name 'xrange'
3
BeenKim commented 6 years ago

Thanks cclauss! Now all pulled in. Sorry for the delay.