def train(self):

        if (self.status != 'init'):
            print("Please load train data and init W first.")
            return self.W

        self.status = 'train'

        self.xpsedo = self.calculate_psedo_X(self.train_X)
        self.W = np.dot(self.xpsedo, self.train_Y)

        return self.W
Train Linear Regression Algorithm
dataset/ETHPy150Open fukuball/fuku-ml/FukuML/LinearRegression.py/LinearRegression.train