

def __init__(self, ssad, kernels, y, pnorm=2.0):
    self.kernels = kernels
    self.y = y
    self.pnorm = pnorm
    (foo, self.samples) = y.size
    self.num_kernels = len(kernels)
    ssad.dm = ([1.0] * self.num_kernels)
    self.dm = [(i / float(self.num_kernels)) for i in self.dm]
    self.ssad = ssad
    self.ssad.set_train_kernel(self.combine_kernels(kernels))
    print('MKL with {0} kernels.'.format(self.num_kernels))
    self.cy = matrix(1.0, (1, self.samples))
    for i in range(self.samples):
        if (y[(0, i)] == (- 1)):
            self.cy[(0, i)] = (- 1.0)

dataset/ETHPy150Open nicococo/tilitools/mkl.py MKLWrapper.__init__/VarMisuse@59/71 `self`->`ssad`