# Flux: if shuffle=false in DataLoader, is Descent "not" SGD?

**URL:** <https://discourse.julialang.org/t/flux-if-shuffle-false-in-dataloader-is-descent-not-sgd/118659>\
**Category:** Machine Learning\
**Tags:** flux\
**Created:** [August 27, 2024, 12:33pm UTC](https://discourse.julialang.org/t/flux-if-shuffle-false-in-dataloader-is-descent-not-sgd/118659 "2024-08-27T12:33:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom-plaa](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@tom-plaa](https://discourse.julialang.org/u/tom-plaa)\
**Post date:** [August 27, 2024, 12:33pm UTC](https://discourse.julialang.org/t/flux-if-shuffle-false-in-dataloader-is-descent-not-sgd/118659/1 "2024-08-27T12:33:46Z")

</div>

Sorry for the stupid question, but it’s like in the title:  
When using `DataLoader`, if we don’t set `shuffle=true`, will the gradient descent algorithm from `Descent` always go through the batches/samples in the same order for every epoch? If yes, why isn’t shuffle set to true by default?
