mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-08 15:05:15 +02:00
bgplvm steepest gradient map update
This commit is contained in:
parent
ca190fe232
commit
1d932cb1b9
1 changed files with 2 additions and 1 deletions
|
|
@ -215,12 +215,13 @@ class BayesianGPLVM(SparseGP, GPLVM):
|
||||||
|
|
||||||
from matplotlib.cm import get_cmap
|
from matplotlib.cm import get_cmap
|
||||||
from GPy.util.latent_space_visualizations.controllers.imshow_controller import ImAnnotateController
|
from GPy.util.latent_space_visualizations.controllers.imshow_controller import ImAnnotateController
|
||||||
|
if not 'cmap' in kwargs.keys():
|
||||||
|
kwargs.update(cmap=get_cmap('jet'),))
|
||||||
controller = ImAnnotateController(ax,
|
controller = ImAnnotateController(ax,
|
||||||
plot_function,
|
plot_function,
|
||||||
tuple(self.X.min(0)[:, significant_dims]) + tuple(self.X.max(0)[:, significant_dims]),
|
tuple(self.X.min(0)[:, significant_dims]) + tuple(self.X.max(0)[:, significant_dims]),
|
||||||
resolution=resolution,
|
resolution=resolution,
|
||||||
aspect=aspect,
|
aspect=aspect,
|
||||||
cmap=get_cmap('jet'),
|
|
||||||
**kwargs)
|
**kwargs)
|
||||||
ax.legend()
|
ax.legend()
|
||||||
ax.figure.tight_layout()
|
ax.figure.tight_layout()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue