From 714906527a3427a08113d66754497ac506b00615 Mon Sep 17 00:00:00 2001 From: rink <rink@ssec.wisc.edu> Date: Wed, 2 Apr 2025 16:39:23 -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 863f2f89..a3bfaba6 100644 --- a/modules/deeplearning/quantile_regression.py +++ b/modules/deeplearning/quantile_regression.py @@ -119,7 +119,7 @@ def run(num_points=1000, num_plot_pts=200): # Plot the results plt.figure(figsize=(8, 6)) - plt.scatter(X_test[:, 0], Y_test[:, 0], alpha=0.3, label="Test Data") + plt.scatter(X_test[::4, 0], Y_test[::4, 0], alpha=0.3, label="Test Data") plt.plot(X_range, predictions[0.05], label="Quantile 0.05", color='red') plt.plot(X_range, predictions[0.5], label="Quantile 0.5 (Median)", color='green') plt.plot(X_range, predictions[0.95], label="Quantile 0.95", color='blue') -- GitLab