Skip to content

Commit 5fe3fba

Browse files
author
Joseph Hall
committed
Bring WrappedPeriodic signature in line with other Covariance funcs
1 parent 539061c commit 5fe3fba

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

pymc/gp/cov.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -933,19 +933,12 @@ class WrappedPeriodic(Covariance):
933933
"""
934934

935935
def __init__(self, cov_func: Stationary, period):
936+
super().__init__(cov_func.input_dim, cov_func.active_dims)
936937
if not isinstance(cov_func, Stationary):
937938
raise TypeError("Must inherit from the Stationary class")
938939
self.cov_func = cov_func
939940
self.period = period
940941

941-
@property
942-
def input_dim(self) -> int:
943-
return self.cov_func.input_dim
944-
945-
@property
946-
def active_dims(self) -> IntSequence:
947-
return self.cov_func.active_dims
948-
949942
def full(self, X: TensorLike, Xs: Optional[TensorLike] = None) -> TensorVariable:
950943
X, Xs = self._slice(X, Xs)
951944
if Xs is None:

0 commit comments

Comments
 (0)