XGBoost-From-Scratch icon indicating copy to clipboard operation
XGBoost-From-Scratch copied to clipboard

erro in return self.log_odds(y) + pred

Open 123carmen opened this issue 1 year ago • 0 comments

In file Naive-Gradient-Boosting.py,--line-210 please tell me what is this 'y' in
return self.log_odds(y) + pred

full code is here def predict(self, X):

    pred = np.zeros(X.shape[0])
    for estimator in self.estimators:
        pred += self.learning_rate * estimator.predict(X)
        
    return self.log_odds(y) + pred

thank you for your code,

123carmen avatar May 30 '23 16:05 123carmen