From 18e9ba678f78afbbddda5996e8cc6bfe1527c525 Mon Sep 17 00:00:00 2001
From: rink <rink@ssec.wisc.edu>
Date: Wed, 2 Apr 2025 10:57:44 -0500
Subject: [PATCH] add option to pass in absolute tolerance

---
 modules/deeplearning/quantile_regression.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/deeplearning/quantile_regression.py b/modules/deeplearning/quantile_regression.py
index 2dae1fc5..e3fc775a 100644
--- a/modules/deeplearning/quantile_regression.py
+++ b/modules/deeplearning/quantile_regression.py
@@ -22,7 +22,7 @@ def true_func(x):
     # Y = 2 + 1.5 * X + epsilon  # Linear relationship with variance increasing
     # Y = 1 + np.exp(X / 4) + epsilon
     # Y = 1 + np.exp(X / 4) + np.sin((2*np.pi/5)*X)
-    return 1 + np.exp(x / 4) + np.sin((2*np.pi/5)*x)
+    return 1 + np.exp(x / 4) + 0.5*np.sin((2*np.pi/5)*x)
 
 # Generate synthetic dataset
 def make_data(num_points=1000):
-- 
GitLab