Skip to content

Commit fb2ba5c

Browse files
Merge pull request yandexdataschool#61 from NickVeld/patch-16
week9:1d_gan_pytorch fix real and fake mixture
2 parents 9cee47d + 182d3c3 commit fb2ba5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

week09_adversarial/simple_1d_gan_pytorch.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"gen = nn.Sequential(nn.Linear(1, 16), nn.ELU(), nn.Linear(16, 1))\n",
4747
"gen_opt = torch.optim.SGD(gen.parameters(), lr=1e-3)\n",
4848
"\n",
49-
"# Discriminator converts 1d data into two logits (0th for real, 1st for fake). \n",
49+
"# Discriminator converts 1d data into two logits (0th for fake, 1st for real). \n",
5050
"# It is deliberately made stronger than generator to make sure disc is slightly \"ahead in the game\".\n",
5151
"disc = nn.Sequential(nn.Linear(1, 64), nn.ELU(), nn.Linear(64, 2))\n",
5252
"disc_opt = torch.optim.SGD(disc.parameters(), lr=1e-2)"

0 commit comments

Comments
 (0)