projects
/
pytorch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c75c128
)
OCD change.
author
Francois Fleuret
<francois@fleuret.org>
Tue, 30 Jun 2020 09:15:18 +0000
(11:15 +0200)
committer
Francois Fleuret
<francois@fleuret.org>
Tue, 30 Jun 2020 09:15:18 +0000
(11:15 +0200)
ddpol.py
patch
|
blob
|
history
diff --git
a/ddpol.py
b/ddpol.py
index
1c5d131
..
f33b0a1
100755
(executable)
--- 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