Skip to content

Commit 909af01

Browse files
committed
timegan typo
1 parent fda9828 commit 909af01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

21_gans_for_synthetic_time_series/02_TimeGAN_TF2.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@
950950
" with tf.GradientTape() as tape:\n",
951951
" h = embedder(x)\n",
952952
" h_hat_supervised = supervisor(h)\n",
953-
" g_loss_s = mse(h[:, 1:, :], h_hat_supervised[:, -1:, :])\n",
953+
" g_loss_s = mse(h[:, 1:, :], h_hat_supervised[:, :-1, :])\n",
954954
"\n",
955955
" var_list = supervisor.trainable_variables\n",
956956
" gradients = tape.gradient(g_loss_s, var_list)\n",

0 commit comments

Comments
 (0)