[ssgplvm] linear kernel

This commit is contained in:
Zhenwen Dai 2014-05-15 11:43:29 +01:00
parent b65da11df5
commit dad476faf6
7 changed files with 162 additions and 104 deletions

View file

@ -169,7 +169,7 @@ class Pickleable(object):
else:
pickle.dump(self, f, protocol)
#===========================================================================
#===========================================================================
# copy and pickling
#===========================================================================
def copy(self):

View file

@ -160,7 +160,7 @@ class SpikeAndSlabPosterior(VariationalPosterior):
else:
return super(VariationalPrior, self).__getitem__(s)
def plot(self, *args):
def plot(self, *args, **kwargs):
"""
Plot latent space X in 1D:
@ -169,4 +169,4 @@ class SpikeAndSlabPosterior(VariationalPosterior):
import sys
assert "matplotlib" in sys.modules, "matplotlib package has not been imported."
from ...plotting.matplot_dep import variational_plots
return variational_plots.plot_SpikeSlab(self,*args)
return variational_plots.plot_SpikeSlab(self,*args, **kwargs)