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

Refactor vertical FL module for XGB-base #482

Merged
merged 17 commits into from
Jan 17, 2023

Conversation

xieyxclack
Copy link
Collaborator

@xieyxclack xieyxclack commented Jan 3, 2023

  • dataset & dataloader
  • XGBServer / XGBClient
  • trainer_wrapper / evalution_wrapper
  • VerticalTrainer

@xieyxclack xieyxclack requested a review from qbc2016 January 3, 2023 06:42
@@ -54,7 +54,6 @@ class Abalone:

def __init__(self,
root,
name,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we should also remove the "name" line (i.e., line 39) in "Arguments" of the class.

@qbc2016
Copy link
Collaborator

qbc2016 commented Jan 3, 2023

LGTM.

@xieyxclack xieyxclack changed the title [WIP] Refactor vertical FL module Refactor vertical FL module for XGB-base Jan 16, 2023
@@ -132,115 +71,49 @@ def sample_data(self, index=None):
# label-owner calls self.preparation()
Copy link
Collaborator

Choose a reason for hiding this comment

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

The annotate should be modified or deleted.

sender=self.ID,
state=self.state,
receiver=receiver,
content=batch_index))

# other clients receive the data-sample information
# other clients also call self.preparation()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same as above.

receiver=[
each
for each in list(self.comm_manager.neighbors.keys())
if each != self.server_id
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here should add the condition that "and each != self.ID", otherwise label owner would send it twice.

Copy link
Collaborator

@qbc2016 qbc2016 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!

@xieyxclack xieyxclack merged commit 8457b06 into alibaba:master Jan 17, 2023
@xieyxclack xieyxclack deleted the dev/xgb-refactor branch January 17, 2023 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants