Skip to content

Commit e37a1bd

Browse files
committed
-- fixed a bug in logging
1 parent 6b3828a commit e37a1bd

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

pytorch_tabular/models/mixture_density/mdn.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def validation_epoch_end(self, outputs) -> None:
222222
},
223223
commit=False,
224224
)
225-
pi = [output[1]["pi"] for output in outputs]
225+
pi = [output[2]["pi"] for output in outputs]
226226
flattened_pi = torch.flatten(torch.cat(pi))
227227
wandb.log(
228228
{
@@ -231,7 +231,7 @@ def validation_epoch_end(self, outputs) -> None:
231231
},
232232
commit=False,
233233
)
234-
mu = [output[1]["mu"] for output in outputs]
234+
mu = [output[2]["mu"] for output in outputs]
235235
flattened_mu = torch.flatten(torch.cat(mu))
236236
wandb.log(
237237
{
@@ -240,7 +240,7 @@ def validation_epoch_end(self, outputs) -> None:
240240
},
241241
commit=False,
242242
)
243-
sigma = [output[1]["sigma"] for output in outputs]
243+
sigma = [output[2]["sigma"] for output in outputs]
244244
flattened_sigma = torch.flatten(torch.cat(sigma))
245245
wandb.log(
246246
{

0 commit comments

Comments
 (0)