From: Francois Fleuret Date: Tue, 30 Jun 2020 09:15:18 +0000 (+0200) Subject: OCD change. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=c9b738deac0ba9378509e684273de90089a2f5d7;p=pytorch.git OCD change. --- diff --git a/ddpol.py b/ddpol.py index 1c5d131..f33b0a1 100755 --- a/ddpol.py +++ b/ddpol.py @@ -59,6 +59,8 @@ def fit_alpha(x, y, D, a = 0, b = 1, rho = 1e-12): ###################################################################### +# The "ground truth" + def phi(x): return torch.abs(torch.abs(x - 0.4) - 0.2) + x/2 - 0.1