Example #1
0
 def _get_param_names(self):
     # X_names = sum([['X_%i_%i' % (n, q) for q in range(self.input_dim)] for n in range(self.num_data)], [])
     # S_names = sum([['X_variance_%i_%i' % (n, q) for q in range(self.input_dim)] for n in range(self.num_data)], [])
     n1 = self.gref._get_param_names()
     n1var = n1[:self.NQ * 2 + self.MQ]
     map_names = lambda ns, name: map(
         lambda x: "{1}_{0}".format(*x),
         itertools.izip(ns, itertools.repeat(name)))
     return list(itertools.chain(n1var, *(map_names(\
             SparseGP._get_param_names(g)[self.MQ:], n) \
             for g, n in zip(self.bgplvms, self.names))))
Example #2
0
 def _get_param_names(self):
     # X_names = sum([['X_%i_%i' % (n, q) for q in range(self.input_dim)] for n in range(self.num_data)], [])
     # S_names = sum([['X_variance_%i_%i' % (n, q) for q in range(self.input_dim)] for n in range(self.num_data)], [])
     n1 = self.gref._get_param_names()
     n1var = n1[:self.NQ * 2 + self.MQ]
     map_names = lambda ns, name: map(lambda x: "{1}_{0}".format(*x),
                                      itertools.izip(ns,
                                                     itertools.repeat(name)))
     return list(itertools.chain(n1var, *(map_names(\
             SparseGP._get_param_names(g)[self.MQ:], n) \
             for g, n in zip(self.bgplvms, self.names))))
Example #3
0
 def _get_param_names(self):
     n1 = self.gref._get_param_names()
     n1var = n1[:self.NQ * 2 + self.MQ]
     #    return n1var
     #
     #def _get_kernel_names(self):
     map_names = lambda ns, name: map(
         lambda x: "{1}_{0}".format(*x),
         itertools.izip(ns, itertools.repeat(name)))
     return list(itertools.chain(n1var, *(map_names(\
             SparseGP._get_param_names(g)[self.MQ:], n) \
             for g, n in zip(self.bgplvms, self.names))))
Example #4
0
File: mrd.py Project: Dalar/GPy
 def _get_param_names(self):
     n1 = self.gref._get_param_names()
     n1var = n1[:self.NQ * 2 + self.MQ]
 #    return n1var
 #
 #def _get_kernel_names(self):
     map_names = lambda ns, name: map(lambda x: "{1}_{0}".format(*x),
                                      itertools.izip(ns,
                                                     itertools.repeat(name)))
     return list(itertools.chain(n1var, *(map_names(\
             SparseGP._get_param_names(g)[self.MQ:], n) \
             for g, n in zip(self.bgplvms, self.names))))