mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-07-23 13:10:06 +08:00
fix past_observed_values
This commit is contained in:
@@ -234,7 +234,7 @@ class DeepVARTrainingNetwork(nn.Module):
|
||||
"""
|
||||
|
||||
past_observed_values = torch.min(
|
||||
past_observed_values, past_is_pad.unsqueeze(-1)
|
||||
past_observed_values, 1 - past_is_pad.unsqueeze(-1)
|
||||
)
|
||||
|
||||
if future_time_feat is None or future_target_cdf is None:
|
||||
|
||||
@@ -203,7 +203,6 @@ class IndependentNormalOutput(DistributionOutput):
|
||||
class MultivariateNormalOutput(DistributionOutput):
|
||||
def __init__(self, dim: int) -> None:
|
||||
self.args_dim = {"loc": dim, "scale_tril": dim * dim}
|
||||
self.distr_cls = MultivariateNormal
|
||||
self.dim = dim
|
||||
|
||||
def domain_map(self, loc, scale):
|
||||
|
||||
Reference in New Issue
Block a user