Closed vinsis closed 5 years ago
In flows_01.ipynb, the cell below the text Now the only missing ingredient is the loss function that is simply defined as follows is empty. I believe the loss function was defined here.
flows_01.ipynb
Now the only missing ingredient is the loss function that is simply defined as follows
Can you please share the loss function? Thanks.
Found it in the previous commit:
def loss(density, zk, log_jacobians): sum_of_log_jacobians = sum(log_jacobians) return (-sum_of_log_jacobians - torch.log(density(zk) + 1e-9)).mean()
In
flows_01.ipynb
, the cell below the textNow the only missing ingredient is the loss function that is simply defined as follows
is empty. I believe the loss function was defined here.Can you please share the loss function? Thanks.