9 karma · joined Jul 24, 2014 (12y ago) · 3 submissions
comment 5y ago · link · parent
Random sampling becomes prohibitive in higher dimensions due to the curse of dimensionality [0]. Gradient descent doesn't have this problem and will always converge to a local (but, as can be seen here, not necessarily an absolute) minimum.
The step size effectively controls how far from the "real" local minimum you can get: too big a step size and you end up repeatedly "jumping over" the minimum.
comment 7y ago · link · parent
This requires some care though, as the struct may still be copied needlessly if it is not also marked as `readonly` [2].
[1] - https://blogs.msdn.microsoft.com/mazhou/2018/03/02/c-7-serie... [2] - https://docs.microsoft.com/en-us/dotnet/csharp/write-safe-ef...