mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-18 13:55:14 +02:00
index operations view delitem added
This commit is contained in:
parent
68a8c3a691
commit
498e757eec
1 changed files with 3 additions and 0 deletions
|
|
@ -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()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue