-
Notifications
You must be signed in to change notification settings - Fork 214
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
Conversation
xieyxclack
commented
Jan 3, 2023
•
edited
Loading
edited
- dataset & dataloader
- XGBServer / XGBClient
- trainer_wrapper / evalution_wrapper
- VerticalTrainer
@@ -54,7 +54,6 @@ class Abalone: | |||
|
|||
def __init__(self, | |||
root, | |||
name, |
There was a problem hiding this comment.
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.
LGTM. |
@@ -132,115 +71,49 @@ def sample_data(self, index=None): | |||
# label-owner calls self.preparation() |
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!