Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions attentive_neural_process.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -1582,4 +1582,4 @@
]
}
]
}
}