def trainRidgeRegression(self,labels,vectors,verbose=False):   
        self.training_size = len(labels)
        
        c = len(labels)
        r = len(vectors[0])
        
        self.c = c
        self.r = r
        y = np.array(labels,'d')
        
        X = np.zeros((r,c),'d')
        for i in range(len(vectors)):
            X[:,i] = vectors[i]

        self.X = X
        
        kernel_matrix = np.zeros((c,c),'d')
        for i in range(c):
            kernel_matrix[:,i] = self.kernel(X,X[:,i:i+1])

        self.w = np.dot(y,np.linalg.inv(kernel_matrix + self.lam/np.eye(c)))
dataset/ETHPy150Open bolme/pyvision/src/pyvision/vector/RidgeRegression.py/KernelRidgeRegression.trainRidgeRegression/operator `*` -> `/`