> For the complete documentation index, see [llms.txt](https://jgoodman8.gitbook.io/iron-data-science-notebook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jgoodman8.gitbook.io/iron-data-science-notebook/ml-datascience/frequent-questions/batch-vs-online-learning.md).

# Batch vs Online Learning

## Batch learning

* Training is performed with all the data
* It is performed offline
* It requires more resources and time (every time the training is performed)

## Online learning

* Training is performed on mini-batches
* It is offline, as well
* It updates the model (not overwritten) - so, it requires fewer resources.
* It is **important to properly set the&#x20;*****regularization parameter*** and check the wellness of all the data fed into the model.

![](https://569842953-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LmjpNbCRLUyGiAxD8kn%2F-LnDivlso-acLomL2bLr%2F-LnDlYfrzj9Rbmk35UxE%2Fimage.png?alt=media\&token=9c72587f-7fed-4413-a755-eff510e66772)
