summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fits.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fits.cpp b/fits.cpp
index 3843dcf..c4b8a69 100644
--- a/fits.cpp
+++ b/fits.cpp
@@ -89,7 +89,7 @@ Vector gradientDescent(const std::vector<std::tuple<Real, Real>>& data, const Ve
while (
xₜ₊₁ = xₜ - α * ∇H, Hₜ₊₁ = cost(data, xₜ₊₁),
- Hₜ₊₁ > Hₜ - 0.0 * α * m
+ Hₜ₊₁ > Hₜ - 0.25 * α * m
) {
α /= 2;
}