def fit(self, X, y): d = xgb.DMatrix(X, y) self.clf = xgb.Booster(param, [d]) for i in range(10): self.clf.update(d, i)