- Neural Networks with Keras Cookbook
- V Kishore Ayyadevara
- 182字
- 2021-07-02 12:46:27
How it works...
You should notice that the accuracy is much lower initially and that it catches up only after a considerable number of epochs are run. The reason for a low accuracy during initial epochs is that the number of times of weight update is much lower in this scenario when compared to the previous scenario (where the batch size was smaller).
In this scenario, when the batch size is 30,000, and the total dataset size is 60,000, when we run the model for 500 epochs, the weight updates happens at epochs * (dataset size/ batch size) = 500 * (60,000/30,000) = 1,000 times.
In the previous scenario, the weight updates happens at 500 * (60,000/32) = 937,500 times.
Hence, the lower the batch size, the more times the weights get updated and, generally, the better the accuracy is for the same number of epochs.
At the same time, you should be careful not to have too few examples in the batch size, which might result in not only having a very long training time, but also a potential overfitting scenario.
- HoloLens Beginner's Guide
- Offer來了:Java面試核心知識點精講(原理篇)
- 從0到1:HTML+CSS快速上手
- 零基礎(chǔ)學MQL:基于EA的自動化交易編程
- Visual Basic程序設(shè)計與應用實踐教程
- Android 應用案例開發(fā)大全(第3版)
- R Data Science Essentials
- 從零開始學Android開發(fā)
- 單片機原理及應用技術(shù)
- 分布式數(shù)據(jù)庫原理、架構(gòu)與實踐
- JSP程序設(shè)計與案例實戰(zhàn)(慕課版)
- Java核心編程
- 從零開始學Unity游戲開發(fā):場景+角色+腳本+交互+體驗+效果+發(fā)布
- Java服務端研發(fā)知識圖譜
- 數(shù)據(jù)結(jié)構(gòu)與算法詳解