calpit.nn.umnn

Unconstrained monotonic neural networks (UMNN).

Adapted from https://github.com/AWehenkel/UMNN (Wehenkel & Louppe 2019, “Unconstrained Monotonic Neural Networks”, NeurIPS), copyright (c) 2020 Antoine Wehenkel, under the BSD 3-Clause License included in this directory.

Submodules

Classes

MonotonicNN

IntegrandNN

NeuralIntegral

ParallelNeuralIntegral

Package Contents

class MonotonicNN(in_d, hidden_layers, nb_steps=50, sigmoid=False)[source]

Bases: torch.nn.Module

integrand
net = []
nb_steps = 50
sigmoid = False
forward(x_input)[source]
class IntegrandNN(in_d, hidden_layers)[source]

Bases: torch.nn.Module

net = []
forward(x, h)[source]
class NeuralIntegral[source]

Bases: torch.autograd.Function

static forward(ctx, x0, x, integrand, flat_params, h, nb_steps=20)[source]
static backward(ctx, grad_output)[source]
class ParallelNeuralIntegral[source]

Bases: torch.autograd.Function

static forward(ctx, x0, x, integrand, flat_params, h, nb_steps=20)[source]
static backward(ctx, grad_output)[source]