Skip to content

added mini batch gradient descent algo in ml dir - #13026

Merged
cclauss merged 5 commits into
TheAlgorithms:masterfrom
sanskarmodi8:mini_batch_gradient_descent
Sep 14, 2026
Merged

cclauss merged 5 commits into
TheAlgorithms:masterfrom
sanskarmodi8:mini_batch_gradient_descent

Conversation

@sanskarmodi8

Copy link
Copy Markdown
Contributor

Describe your change:

  • Add an algorithm

Added Mini-Batch Gradient Descent algorithm for linear regression. This implements training with mini-batches, allowing for faster convergence and better generalization compared to standard gradient descent.

Checklist:

@algorithms-keeper algorithms-keeper Bot added require descriptive names This PR needs descriptive function and/or variable names require type hints https://docs.python.org/3/library/typing.html labels Oct 1, 2025

@algorithms-keeper algorithms-keeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Click here to look at the relevant links ⬇️

🔗 Relevant Links

Repository:

Python:

Automated review generated by algorithms-keeper. If there's any problem regarding this review, please open an issue about it.

algorithms-keeper commands and options

algorithms-keeper actions can be triggered by commenting on this PR:

  • @algorithms-keeper review to trigger the checks for only added pull request files
  • @algorithms-keeper review-all to trigger the checks for all the pull request files, including the modified files. As we cannot post review comments on lines not part of the diff, this command will post all the messages in one comment.

NOTE: Commands are in beta and so this feature is restricted only to a member or owner of the organization.

Comment thread machine_learning/mini_batch_gradient_descent.py
Comment thread machine_learning/mini_batch_gradient_descent.py Outdated
Comment thread machine_learning/mini_batch_gradient_descent.py Outdated
Comment thread machine_learning/mini_batch_gradient_descent.py Outdated
@algorithms-keeper algorithms-keeper Bot added awaiting reviews This PR is ready to be reviewed tests are failing Do not merge until tests pass labels Oct 1, 2025
@sanskarmodi8
sanskarmodi8 force-pushed the mini_batch_gradient_descent branch from 97feecc to a96fdd1 Compare October 1, 2025 05:58
@algorithms-keeper algorithms-keeper Bot removed require descriptive names This PR needs descriptive function and/or variable names require type hints https://docs.python.org/3/library/typing.html labels Oct 1, 2025
@sanskarmodi8
sanskarmodi8 force-pushed the mini_batch_gradient_descent branch from 4b17e66 to 15d9f9b Compare October 1, 2025 06:02
@algorithms-keeper algorithms-keeper Bot removed the tests are failing Do not merge until tests pass label Oct 1, 2025
@sanskarmodi8

Copy link
Copy Markdown
Contributor Author

Hey, are there any updates on this?

Updated parameter documentation format in mini_batch_gradient_descent.py.
@algorithms-keeper algorithms-keeper Bot removed the awaiting reviews This PR is ready to be reviewed label Sep 14, 2026
@cclauss
cclauss merged commit a23264c into TheAlgorithms:master Sep 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants