You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Erwin Lejeune ***@***.***> 於 2020年2月23日 下午10:24 寫道:
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.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#1>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADM3NB4Q26TANBO46HH6NDLREKBKNANCNFSM4KZ3ASPA>.
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.
The text was updated successfully, but these errors were encountered: