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

The function of epsilon in this algorithm #2

Closed
su123123123 opened this issue Jun 20, 2021 · 2 comments
Closed

The function of epsilon in this algorithm #2

su123123123 opened this issue Jun 20, 2021 · 2 comments

Comments

@su123123123
Copy link

I rebuild the algorithm,but at the "self.boosted_layers[i] = torch.from_numpy(np.array(self.xg.fit(x0.detach().numpy(), (self.l).detach().numpy()).feature_importances_) + self.epsilon)", I can not understand , that feature_importances_ will not change . I think that the function of epsilon does not work.

@tusharsarkar3
Copy link
Owner

Epsilon comes to the picture when the importance of a feature is 0. We take the log of feature importance in the later steps of the algorithm to maintain the same order of the weights and we want to avoid 1 as the order when we have 0 importance of the feature so we have used epsilon. Does this solve your issue ?

@su123123123
Copy link
Author

su123123123 commented Jun 23, 2021 via email

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

2 participants