- 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.
- Getting started with Google Guava
- Android項目開發入門教程
- Learning Spring 5.0
- 造個小程序:與微信一起干件正經事兒
- 構建移動網站與APP:HTML 5移動開發入門與實戰(跨平臺移動開發叢書)
- JavaScript前端開發與實例教程(微課視頻版)
- 游戲程序設計教程
- Securing WebLogic Server 12c
- Apache Mahout Clustering Designs
- Access 2010數據庫應用技術(第2版)
- HTML5 APP開發從入門到精通(微課精編版)
- SQL 經典實例
- Creating Data Stories with Tableau Public
- 計算機應用基礎教程(Windows 7+Office 2010)
- SciPy Recipes