Skip to content

Use f-strings instead of str concat for train/eval summary. #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 27, 2023

Conversation

rossbar
Copy link
Collaborator

@rossbar rossbar commented Jan 16, 2023

A minor touch-up to the error/accuracy summary in the mnist tutorial. Using fstrings here is more idiomatic (and readable, arguably) than a series of manual string concatenation. In principle string.Template could be considered too, but IMO fstrings are good enough!

@rossbar rossbar added the enhancement New feature or request label Jan 16, 2023
@bsipocz
Copy link
Member

bsipocz commented Jan 27, 2023

Thanks!

@bsipocz bsipocz merged commit fe2dbb7 into numpy:main Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants