projects
/
pytorch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added the header.
[pytorch.git]
/
ddpol.py
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