mirror of
https://github.com/wassname/attentive-neural-processes.git
synced 2026-06-27 19:29:51 +08:00
misc
This commit is contained in:
@@ -19,7 +19,7 @@ This repository also includes a pytorch implementation that has been tweaked to
|
||||
- Time features: time of day, day of week, month of year, etc
|
||||
- Bank holidays
|
||||
- Position in sequence: days since start of window
|
||||
- Target is: mean power usage on block
|
||||
- Target is: mean power usage on block 0
|
||||
|
||||
## Example outputs
|
||||
|
||||
|
||||
@@ -253,7 +253,7 @@ class Decoder(nn.Module):
|
||||
x = self._target_transform(target_x)
|
||||
|
||||
# concatenate target_x and representation
|
||||
if r is not None:
|
||||
if self.use_deterministic_path:
|
||||
z = torch.cat([r, z], dim=-1)
|
||||
representation = torch.cat([z, x], dim=-1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user