Skip to content

Commit d266f94

Browse files
committed
-- changed Sigma in MDN to modified ELU
1 parent 306ad38 commit d266f94

File tree

1 file changed

+1
-1
lines changed
  • pytorch_tabular/models/mixture_density

1 file changed

+1
-1
lines changed

pytorch_tabular/models/mixture_density/mdn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def forward(self, x):
5151
pi = self.pi(x)
5252
sigma = self.sigma(x)
5353
# Applying modified ELU activation
54-
sigma = nn.ReLU()(sigma) + 1
54+
sigma = nn.ELU()(sigma) + 1 + 1e-15
5555
mu = self.mu(x)
5656
return pi, sigma, mu
5757

0 commit comments

Comments
 (0)