Return back K_diag for polynomials
@@ -64,4 +64,5 @@ class Polynomial(Linear):
def K(self, X, X2=None, presliced=False):
return (super().K(X, X2, presliced=presliced) + self.offset) ** self.degree
-
+ def K_diag(self, X, presliced=False):
+ return (super().K_diag(X, presliced=presliced) + self.offset) ** self.degree
