[bgplvm] technical new stuff

This commit is contained in:
mzwiessele 2015-07-29 10:48:05 +02:00
parent 4ca4916cc0
commit fca2440943
5 changed files with 15 additions and 5 deletions

View file

@ -69,7 +69,7 @@ from .expectation_propagation_dtc import EPDTC
from .dtc import DTC
from .fitc import FITC
from .var_dtc_parallel import VarDTC_minibatch
from .svgp import SVGP
#from .svgp import SVGP
# class FullLatentFunctionData(object):
#

View file

@ -72,10 +72,10 @@ class SparseGPStochastics(StochasticStorage):
bdict = {}
for d in self.d:
inan = np.isnan(self.Y[:, d])
arr_str = np.array2string(inan,
arr_str = int(np.array2string(inan,
np.inf, 0,
True, '',
formatter={'bool':lambda x: '1' if x else '0'})
formatter={'bool':lambda x: '1' if x else '0'}), 2)
try:
bdict[arr_str][0].append(d)
except: