def set_training_sample(self, X, Y, w=None):
       self.X = X
       self.Y = Y
       if w: self.weights = w
       else: self.set_uni_weights()
set self values and calculates weights if needed
dataset/ETHPy150Open bt3gl/Advanced-Machine-Learning/adaboost/decision_stump.py/DecisionStump.set_training_sample