Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erro in return self.log_odds(y) + pred #4

Open
123carmen opened this issue May 30, 2023 · 0 comments
Open

erro in return self.log_odds(y) + pred #4

123carmen opened this issue May 30, 2023 · 0 comments

Comments

@123carmen
Copy link

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant