pcikling?

This commit is contained in:
Max Zwiessele 2013-06-25 17:43:42 +01:00
parent d3a4f99b89
commit e869fcaf65
9 changed files with 149 additions and 370 deletions

View file

@ -45,14 +45,15 @@ class kern(Parameterised):
Parameterised.__init__(self)
def plot_ARD(self, fignum=None, ax=None):
def plot_ARD(self, fignum=None, ax=None, title=None):
"""If an ARD kernel is present, it bar-plots the ARD parameters"""
if ax is None:
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)
if title is None:
ax.set_title('ARD parameters, %s kernel' % p.name)
if p.name == 'linear':
ard_params = p.variances