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

add feature importance to xgb algo #438

Merged
merged 6 commits into from
Nov 21, 2022

Conversation

qbc2016
Copy link
Collaborator

@qbc2016 qbc2016 commented Nov 17, 2022

After testing, from the feature_importance dict we can see the number of times that each feature has been used for splitting

rayrayraykk
rayrayraykk previously approved these changes Nov 18, 2022
Copy link
Collaborator

@rayrayraykk rayrayraykk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

@@ -699,3 +699,6 @@ def update_best_result(self, best_results, new_results, results_type):
logger.error(
"cfg.wandb.use=True but not install the wandb package")
exit()

def diagnosis(self, best_results, new_results, results_type):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The vFL diagnosis requires communication between clients, so we should change diagnosis() here to another name as the function only add a new key to best_results.

@rayrayraykk rayrayraykk merged commit cfab8c7 into alibaba:master Nov 21, 2022
@qbc2016 qbc2016 deleted the dev_xgb_feedback branch June 8, 2023 03:55
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

Successfully merging this pull request may close these issues.

2 participants