Add a probabilistic kwarg (True or False) to Dense, DenseNetwork, Embedding, and BatchNormalization modules.
That way you can pretty easily do, say, a non-probabilistic net with a probabilistic linear layer on top (see Snoek et al., 2015 and Riquelme et al. 2018):
Add a
probabilistic
kwarg (True or False) to Dense, DenseNetwork, Embedding, and BatchNormalization modules.That way you can pretty easily do, say, a non-probabilistic net with a probabilistic linear layer on top (see Snoek et al., 2015 and Riquelme et al. 2018):
And, set whether you want your embeddings to be probabilistic or not (for Embedding).
probabilistic
kwarg for Denseprobabilistic
kwarg for DenseNetworkprobabilistic
kwarg for EmbeddingNeuralLinear
example above.