We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 539061c commit 5fe3fbaCopy full SHA for 5fe3fba
pymc/gp/cov.py
@@ -933,19 +933,12 @@ class WrappedPeriodic(Covariance):
933
"""
934
935
def __init__(self, cov_func: Stationary, period):
936
+ super().__init__(cov_func.input_dim, cov_func.active_dims)
937
if not isinstance(cov_func, Stationary):
938
raise TypeError("Must inherit from the Stationary class")
939
self.cov_func = cov_func
940
self.period = period
941
- @property
942
- def input_dim(self) -> int:
943
- return self.cov_func.input_dim
944
-
945
946
- def active_dims(self) -> IntSequence:
947
- return self.cov_func.active_dims
948
949
def full(self, X: TensorLike, Xs: Optional[TensorLike] = None) -> TensorVariable:
950
X, Xs = self._slice(X, Xs)
951
if Xs is None:
0 commit comments