mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-11 21:12:38 +02:00
plotting behaviour adapted for kern and mrd
This commit is contained in:
parent
a32f9bf9dd
commit
cadf822292
2 changed files with 23 additions and 19 deletions
|
|
@ -46,10 +46,11 @@ class kern(parameterised):
|
|||
parameterised.__init__(self)
|
||||
|
||||
|
||||
def plot_ARD(self, ax=None):
|
||||
def plot_ARD(self, fignum=None, ax=None):
|
||||
"""If an ARD kernel is present, it bar-plots the ARD parameters"""
|
||||
if ax is None:
|
||||
ax = pb.gca()
|
||||
fig = pb.figure(fignum)
|
||||
ax = fig.add_subplot(111)
|
||||
for p in self.parts:
|
||||
if hasattr(p, 'ARD') and p.ARD:
|
||||
ax.set_title('ARD parameters, %s kernel' % p.name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue