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/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章