# 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)
