Skip to content
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

Unsupported call of .format() #1

Open
guilyx opened this issue Feb 23, 2020 · 1 comment
Open

Unsupported call of .format() #1

guilyx opened this issue Feb 23, 2020 · 1 comment

Comments

@guilyx
Copy link

guilyx commented Feb 23, 2020

Hey,

In your Neural Network class, when you print your epochs, iterations and loss :

print('=== Epoch: {:d}/{:d}\tIteration:{:d}\tLoss: {:.2f} ===').format(epoch+1, self.num_epochs, iteration+1, loss)

You call format on a NoneType i.e. print() instead of calling it on the string. It should be :

print('=== Epoch: {:d}/{:d}\tIteration:{:d}\tLoss: {:.2f} ==='.format(epoch+1, self.num_epochs, iteration+1, loss))

Unless I am mistaken.

@chih-chun-chang
Copy link
Owner

chih-chun-chang commented Feb 23, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants