

def init_W(self, mode='normal'):
    self.W = {
        
    }
    if ((mode.status != 'load_train_data') and (self.status != 'train')):
        print('Please load train data first.')
        return self.W
    self.status = 'init'
    self.data_num = len(self.train_Y)
    self.data_demension = len(self.train_X[0])
    self.class_list = list(itertools.combinations(np.unique(self.train_Y), 2))
    for class_item in self.class_list:
        self.W[class_item] = np.zeros(self.data_demension)
    return self.W

dataset/ETHPy150Open fukuball/fuku-ml/FukuML/LinearRegression.py MultiClassifier.init_W/VarMisuse@26/30 `self`->`mode`