Dual-Headed SplitNN Config1 and Config2#68
Open
abbas5253 wants to merge 1 commit intoOpenMined:masterfrom
Open
Dual-Headed SplitNN Config1 and Config2#68abbas5253 wants to merge 1 commit intoOpenMined:masterfrom
abbas5253 wants to merge 1 commit intoOpenMined:masterfrom
Conversation
|
Check out this pull request on Review Jupyter notebook visual diffs & provide feedback on notebooks. Powered by ReviewNB |
TTitcombe
reviewed
Aug 26, 2020
| "model_locations = [client_1, client_2, server, label_owner]\n", | ||
| "\n", | ||
| "#Split each image and send one part to client_1, and other to client_2\n", | ||
| "distributed_trainloader = Distribute_MNIST(data_owners=data_owners, data_loader=trainloader)" |
Member
There was a problem hiding this comment.
For the case where images go to one worker and labels to another, we have implemented the vertically_federate method of a PartitionedDataset (https://github.com/OpenMined/PyVertical/blob/master/src/future/dataset.py#L219).
Could you change this to use that class?
Author
There was a problem hiding this comment.
Actually, the image is split into two parts, that are sent to client_1 and client_2. and label_owner has labels.
PyVertical/src/future/dataset.py
Line 194 in 5f3f9c1
I don't think this supports the case.
Would you like me to write a new method for splitting the image in
PartitionedDataset among two workers?
TTitcombe
reviewed
Aug 26, 2020
| "model_locations = [client_1, client_2, server]\n", | ||
| "\n", | ||
| "#Split each image and send one part to client_1, and other to client_2\n", | ||
| "distributed_trainloader = Distribute_MNIST(data_owners=data_owners, data_loader=trainloader)" |
Member
There was a problem hiding this comment.
Same comment as on the other notebook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added two configurations of splitNN for vertically partitioned data.
Config-1: Server has image labels.
Config-2: A worker named label_owner has image labels (U-shaped).
Affected Dependencies
None
Checklist