From f8688a9489257b022ba07159dd426dc03843618e Mon Sep 17 00:00:00 2001 From: Christabella Irwanto Date: Thu, 16 Jan 2020 09:37:17 +0200 Subject: [PATCH] Edit comments in attentive_neural_process.ipynb. --- attentive_neural_process.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/attentive_neural_process.ipynb b/attentive_neural_process.ipynb index 4942b22..0fca088 100644 --- a/attentive_neural_process.ipynb +++ b/attentive_neural_process.ipynb @@ -641,11 +641,11 @@ " # Pass query through the encoder and the decoder\n", " prior = self._latent_encoder(context_x, context_y)\n", " \n", - " # For training, when target_y is available, use targets for latent encoder.\n", - " # Note that targets contain contexts by design.\n", + " # For testing, when target_y unavailable, use contexts for latent encoder.\n", " if target_y is None:\n", " latent_rep = prior.sample()\n", - " # For testing, when target_y unavailable, use contexts for latent encoder.\n", + " # For training, when target_y is available, use targets for latent encoder.\n", + " # Note that targets contain contexts by design.\n", " else:\n", " posterior = self._latent_encoder(target_x, target_y)\n", " latent_rep = posterior.sample()\n", @@ -1582,4 +1582,4 @@ ] } ] -} \ No newline at end of file +}