Skip to content

Commit e09849b

Browse files
committed
Update exp_smooth.py
1 parent 38fbe83 commit e09849b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

torchcast/exp_smooth/exp_smooth.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ def __init__(self,
3636
self.smoothing_matrix = smoothing_matrix.set_id('smoothing_matrix')
3737

3838
def initial_covariance(self, inputs: dict, num_groups: int, num_times: int, _ignore_input: bool = False) -> Tensor:
39-
# initial covariance is always zero. this will be replaced by the 1-step-ahead covariance in the first call to
40-
# predict
41-
m = list(self.processes)[0].initial_mean # get a parameter, any parameter, to get device
39+
# initial covariance is always zero. this will be replaced by the 1-step covariance in the first call to predict
40+
m = list(self.processes.values())[0].initial_mean # get a parameter, any parameter, to get device
4241
return torch.zeros((num_groups, num_times, self.state_rank, self.state_rank), dtype=m.dtype, device=m.device)
4342

4443
def _mask_mats(self,

0 commit comments

Comments
 (0)