def trainClassifer(self,labels,vectors,verbose=False,ilog=None):
        '''
        Do not call this function instead call train.
        '''
        self.training_size = len(labels)
        
        c = len(labels)
        r = len(vectors[0])
        
        y = np.array(labels,'d')
        
        X = np.zeros((r,c),'d')
        
        for i in range(len(vectors)):
            X[:,i] = vectors[i]

        tmp1 = np.linalg.inv(self.lam*np.eye(r) + np.dot(X,X.transpose()))
        
        tmp2 = np.dot(y,X.transpose())
        
        self.w = np.dot(tmp1,tmp2)
dataset/ETHPy150Open bolme/pyvision/src/pyvision/vector/RidgeRegression.py/RidgeRegression.trainClassifer/original