mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-08 19:42:39 +02:00
[variational] plot needed kwargs
This commit is contained in:
parent
66c7da879a
commit
1efa842130
1 changed files with 2 additions and 3 deletions
|
|
@ -141,7 +141,7 @@ class NormalPosterior(VariationalPosterior):
|
||||||
holds the means and variances for a factorizing multivariate normal distribution
|
holds the means and variances for a factorizing multivariate normal distribution
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def plot(self, *args):
|
def plot(self, *args, **kwargs):
|
||||||
"""
|
"""
|
||||||
Plot latent space X in 1D:
|
Plot latent space X in 1D:
|
||||||
|
|
||||||
|
|
@ -150,8 +150,7 @@ class NormalPosterior(VariationalPosterior):
|
||||||
import sys
|
import sys
|
||||||
assert "matplotlib" in sys.modules, "matplotlib package has not been imported."
|
assert "matplotlib" in sys.modules, "matplotlib package has not been imported."
|
||||||
from ...plotting.matplot_dep import variational_plots
|
from ...plotting.matplot_dep import variational_plots
|
||||||
import matplotlib
|
return variational_plots.plot(self, *args, **kwargs)
|
||||||
return variational_plots.plot(self,*args)
|
|
||||||
|
|
||||||
class SpikeAndSlabPosterior(VariationalPosterior):
|
class SpikeAndSlabPosterior(VariationalPosterior):
|
||||||
'''
|
'''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue