Data Science 365

Bring data into actionable insights.

Member-only story

Determining the Right Batch Size for a Neural Network to Get Better and Faster Results

4 min readSep 26, 2022

--

Photo by Chor Tsang on Unsplash

In a previous post, we discussed that many hyperparameters need to be adjusted before training a natural network.

The learning rate is the most important hyperparameter that we need to configure before training.

The batch size is another important hyperparameter that we need to adjust before the training process because it directly impacts on the model’s performance and training time.

Beginners in deep learning always ask:

How to determine the right batch size that will help a neural network to achieve the highest performance in the shortest period of time.

In this post, I will address this question in depth by providing more details about the batch size.

What are batches and why do we need them?

Deep learning models require very large datasets to achieve high performance. When the dataset has thousands…

--

--

Data Science 365
Data Science 365
Rukshan Pramoditha
Rukshan Pramoditha

Written by Rukshan Pramoditha

3,000,000+ Views | BSc in Stats (University of Colombo, Sri Lanka) | Top 50 Data Science, AI/ML Technical Writer on Medium

No responses yet