mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-30 14:35:15 +02:00
add new feature about inferene X given Y
This commit is contained in:
parent
ffefaf66fb
commit
c98b1b76e0
7 changed files with 65 additions and 26 deletions
|
|
@ -12,6 +12,16 @@ try:
|
|||
except:
|
||||
pass
|
||||
|
||||
def plot_latent_interactive(model, labels=None, **kwargs):
|
||||
fig, (latent_axes, sense_axes) = pb.subplots(1, 2)
|
||||
model.plot_latent(ax=latent_axes, labels=labels, **kwargs)
|
||||
from .visualize import vector_show,lvm_dimselect
|
||||
data_show = vector_show((model.Y[0,:]))
|
||||
lvm_visualizer = lvm_dimselect(param_to_array(model.X.mean)[0:1,:], # @UnusedVariable
|
||||
model, data_show, latent_axes=latent_axes, sense_axes=sense_axes, labels=labels)
|
||||
raw_input('Press enter to finish')
|
||||
pb.close(fig)
|
||||
|
||||
def most_significant_input_dimensions(model, which_indices):
|
||||
"""
|
||||
Determine which dimensions should be plotted
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue