{"action":"created","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/7648","repository_url":"https://api.github.com/repos/fchollet/keras","labels_url":"https://api.github.com/repos/fchollet/keras/issues/7648/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/7648/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/7648/events","html_url":"https://github.com/fchollet/keras/issues/7648","id":250208166,"number":7648,"title":"Why the loss value changes greatly between epochs?","user":{"login":"LokLu","id":24246633,"avatar_url":"https://avatars3.githubusercontent.com/u/24246633?v=4","gravatar_id":"","url":"https://api.github.com/users/LokLu","html_url":"https://github.com/LokLu","followers_url":"https://api.github.com/users/LokLu/followers","following_url":"https://api.github.com/users/LokLu/following{/other_user}","gists_url":"https://api.github.com/users/LokLu/gists{/gist_id}","starred_url":"https://api.github.com/users/LokLu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LokLu/subscriptions","organizations_url":"https://api.github.com/users/LokLu/orgs","repos_url":"https://api.github.com/users/LokLu/repos","events_url":"https://api.github.com/users/LokLu/events{/privacy}","received_events_url":"https://api.github.com/users/LokLu/received_events","type":"User","site_admin":false},"labels":[{"id":611595073,"url":"https://api.github.com/repos/fchollet/keras/labels/stale","name":"stale","color":"ffffff","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-15T02:50:01Z","updated_at":"2017-11-13T20:57:06Z","closed_at":null,"author_association":"NONE","body":"I run the mnist_cnn example under the 'examples' folder. Below is the log informaiton.\r\nI wonder why the loss value changed greatly between epochs.\r\nIs there any special calculation between epochs?\r\nWhat's the difference between the batch by batch update and epoch by epoch update?\r\n\r\n56448/60000 [===========================>..] - ETA: 0s - loss: 0.3547 - acc: 0.8938\r\n56960/60000 [===========================>..] - ETA: 0s - loss: 0.3529 - acc: 0.8942\r\n57344/60000 [===========================>..] - ETA: 0s - loss: 0.3515 - acc: 0.8946\r\n57856/60000 [===========================>..] - ETA: 0s - loss: 0.3497 - acc: 0.8952\r\n58240/60000 [============================>.] - ETA: 0s - loss: 0.3484 - acc: 0.8954\r\n58624/60000 [============================>.] - ETA: 0s - loss: 0.3468 - acc: 0.8960\r\n59136/60000 [============================>.] - ETA: 0s - loss: 0.3449 - acc: 0.8965\r\n59648/60000 [============================>.] - ETA: 0s - loss: 0.3436 - acc: 0.8969\r\n60000/60000 [==============================] - 9s - loss: 0.3423 - acc: 0.8972 - val_loss: 0.0793 - val_acc: 0.9767\r\nEpoch 2/12\r\n  128/60000 [..............................] - ETA: 9s - loss: 0.0927 - acc: 0.9766\r\n  640/60000 [..............................] - ETA: 7s - loss: 0.1146 - acc: 0.9672\r\n 1024/60000 [..............................] - ETA: 7s - loss: 0.1318 - acc: 0.9658\r\n 1408/60000 [..............................] - ETA: 7s - loss: 0.1307 - acc: 0.9645\r\n 1792/60000 [..............................] - ETA: 7s - loss: 0.1323 - acc: 0.9626\r\n 2176/60000 [>.............................] - ETA: 7s - loss: 0.1248 - acc: 0.9637\r\n 2688/60000 [>.............................] - ETA: 7s - loss: 0.1241 - acc: 0.9643"},"comment":{"url":"https://api.github.com/repos/fchollet/keras/issues/comments/344055336","html_url":"https://github.com/fchollet/keras/issues/7648#issuecomment-344055336","issue_url":"https://api.github.com/repos/fchollet/keras/issues/7648","id":344055336,"user":{"login":"ozabluda","id":14060629,"avatar_url":"https://avatars3.githubusercontent.com/u/14060629?v=4","gravatar_id":"","url":"https://api.github.com/users/ozabluda","html_url":"https://github.com/ozabluda","followers_url":"https://api.github.com/users/ozabluda/followers","following_url":"https://api.github.com/users/ozabluda/following{/other_user}","gists_url":"https://api.github.com/users/ozabluda/gists{/gist_id}","starred_url":"https://api.github.com/users/ozabluda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozabluda/subscriptions","organizations_url":"https://api.github.com/users/ozabluda/orgs","repos_url":"https://api.github.com/users/ozabluda/repos","events_url":"https://api.github.com/users/ozabluda/events{/privacy}","received_events_url":"https://api.github.com/users/ozabluda/received_events","type":"User","site_admin":false},"created_at":"2017-11-13T20:57:06Z","updated_at":"2017-11-13T20:57:06Z","author_association":"CONTRIBUTOR","body":"Loss (0.3423) is average across the whole epoch 1. Loss (0.0927) is the loss of the first minibatch of the epoch 2."}}
{"actor":{"display_login":"ozabluda"}}