Skip to content

Commit

Permalink
Add Monotonic function toy example
Browse files Browse the repository at this point in the history
  • Loading branch information
AWehenkel committed Dec 15, 2019
1 parent 0aae261 commit 7404356
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 187 deletions.
53 changes: 0 additions & 53 deletions lib/DrawContour.py

This file was deleted.

133 changes: 0 additions & 133 deletions lib/QuadTree.py

This file was deleted.

2 changes: 1 addition & 1 deletion models/UMNN/MonotonicNN.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ def forward(self, x, h):
x0 = torch.zeros(x.shape).to(self.device)
out = self.net(h)
offset = out[:, [0]]
scaling = out[:, [1]]
scaling = torch.exp(out[:, [1]])
return scaling*ParallelNeuralIntegral.apply(x0, x, self.integrand, _flatten(self.integrand.parameters()), h, self.nb_steps) + offset

0 comments on commit 7404356

Please sign in to comment.