From 44e164b8fbbe0c1dce0a8ca0b521fa5c162d22af Mon Sep 17 00:00:00 2001 From: Zhenwen Dai Date: Tue, 29 Mar 2016 15:09:19 +0100 Subject: [PATCH] implement sensitivie of periodic kernel for plot_ARD --- GPy/kern/src/standard_periodic.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GPy/kern/src/standard_periodic.py b/GPy/kern/src/standard_periodic.py index b020d8e7..d45e8d16 100644 --- a/GPy/kern/src/standard_periodic.py +++ b/GPy/kern/src/standard_periodic.py @@ -165,4 +165,6 @@ class StdPeriodic(Kern): def gradients_X_diag(self, dL_dKdiag, X): return np.zeros(X.shape) - \ No newline at end of file + + def input_sensitivity(self, summarize=True): + return self.variance*np.ones(self.input_dim)/self.lengthscale**2 \ No newline at end of file