jagged accuracy curve in tensorflow

What is f-string in python

step = 5
test_accuracy = 0.77777
print(f'step {step:05d}, test accuracy {test_accuracy}\n') # f-strings
# It's more simple than
print('step {:05d}, test accuracy {}\n'.format(step, test_accuracy ))

reference

The new f-strings in Python 3.6 | Seasoned & Agile
https://cito.github.io/blog/f-strings/

What’s New In Python 3.6 — Python 3.6.5 documentation
https://docs.python.org/3/whatsnew/3.6.html

PEP 498 – Literal String Interpolation | Python.org
https://www.python.org/dev/peps/pep-0498/

posted on 2018-04-20 12:39  yusisc  阅读(16)  评论(0编辑  收藏  举报

导航