mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-11 15:15:15 +02:00
some gplvm related fixes
This commit is contained in:
parent
a71bbc0d21
commit
563fbd257b
6 changed files with 19 additions and 26 deletions
|
|
@ -2,6 +2,7 @@ import pylab as pb
|
|||
import numpy as np
|
||||
from .. import util
|
||||
from GPy.util.latent_space_visualizations.controllers.imshow_controller import ImshowController
|
||||
from misc import param_to_array
|
||||
import itertools
|
||||
|
||||
def most_significant_input_dimensions(model, which_indices):
|
||||
|
|
@ -74,7 +75,7 @@ def plot_latent(model, labels=None, which_indices=None,
|
|||
|
||||
index = np.nonzero(labels == ul)[0]
|
||||
if model.input_dim == 1:
|
||||
x = model.X[index, input_1]
|
||||
x = param_to_array(model.X)[index, input_1]
|
||||
y = np.zeros(index.size)
|
||||
else:
|
||||
x = model.X[index, input_1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue