mgermain / MADE

MADE: Masked Autoencoder for Distribution Estimation
100 stars 20 forks source link

calculation of logp #3

Closed rtqichen closed 7 years ago

rtqichen commented 7 years ago

Hi,

Can you explain why this line is computing logp please?

https://github.com/mgermain/MADE/blob/master/MADE/made.py#L94

rtqichen commented 7 years ago

Nevermind, I got it. It's implicitly doing p = sigmoid(pre_output). That's neat!