From a74965b0384714cb53a40c0a6f3e03aae39c0512 Mon Sep 17 00:00:00 2001 From: James Hensman Date: Thu, 27 Mar 2014 10:08:45 +0000 Subject: [PATCH] moved input_sensitivity to the gp class --- GPy/core/gp.py | 6 ++++++ GPy/core/model.py | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/GPy/core/gp.py b/GPy/core/gp.py index 5be3e944..8b52699b 100644 --- a/GPy/core/gp.py +++ b/GPy/core/gp.py @@ -208,6 +208,12 @@ class GP(Model): from ..plotting.matplot_dep import models_plots return models_plots.plot_fit(self,*args,**kwargs) + def input_sensitivity(self): + """ + Returns the sensitivity for each dimension of this model + """ + return self.kern.input_sensitivity() + def _getstate(self): """ diff --git a/GPy/core/model.py b/GPy/core/model.py index 47243b79..e04993cb 100644 --- a/GPy/core/model.py +++ b/GPy/core/model.py @@ -141,12 +141,6 @@ class Model(Parameterized): """ raise DeprecationWarning, 'parameters now have default constraints' - def input_sensitivity(self): - """ - Returns the sensitivity for each dimension of this kernel. - """ - return self.kern.input_sensitivity() - def objective_function(self): """ The objective function for the given algorithm.