diff --git a/GPy/core/parameterization/index_operations.py b/GPy/core/parameterization/index_operations.py index 891ac522..12b3a298 100644 --- a/GPy/core/parameterization/index_operations.py +++ b/GPy/core/parameterization/index_operations.py @@ -192,6 +192,9 @@ class ParameterIndexOperationsView(object): ind = self._filter_index(self._param_index_ops[prop]) return ind + def __delitem__(self, prop): + self.remove(prop, self[prop]) + def __str__(self, *args, **kwargs): import pprint return pprint.pformat(dict(self.iteritems()))