-
Notifications
You must be signed in to change notification settings - Fork 211
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 support for initializing private attributes without callable #974
Merged
psfoley
merged 24 commits into
securefederatedai:develop
from
ishant162:update_private_attr_init
Jun 21, 2024
Merged
Add support for initializing private attributes without callable #974
psfoley
merged 24 commits into
securefederatedai:develop
from
ishant162:update_private_attr_init
Jun 21, 2024
Conversation
This file contains 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
Signed-off-by: ishant162 <[email protected]>
Signed-off-by: ishant162 <[email protected]>
Signed-off-by: ishant162 <[email protected]>
Signed-off-by: ishant162 <[email protected]>
Signed-off-by: Ishant Thakare <[email protected]>
…ization and added testcases to test the same Signed-off-by: Ishant Thakare <[email protected]>
Signed-off-by: Ishant Thakare <[email protected]>
Signed-off-by: Ishant Thakare <[email protected]>
Signed-off-by: Ishant Thakare <[email protected]>
Signed-off-by: Ishant Thakare <[email protected]>
Signed-off-by: Ishant Thakare <[email protected]>
Signed-off-by: Ishant Thakare <[email protected]>
Signed-off-by: Ishant Thakare <[email protected]>
ishant162
changed the title
Local Runtime: Support initialization of private attributes directly
Add support for initializing private attributes without callable
May 31, 2024
Signed-off-by: Ishant Thakare <[email protected]>
psfoley
reviewed
Jun 5, 2024
Signed-off-by: Ishant Thakare <[email protected]>
Signed-off-by: Ishant Thakare <[email protected]>
Signed-off-by: Ishant Thakare <[email protected]>
Signed-off-by: Ishant Thakare <[email protected]>
psfoley
reviewed
Jun 12, 2024
psfoley
reviewed
Jun 12, 2024
Review comments incorporated. Co-authored-by: Patrick Foley <[email protected]> Signed-off-by: Parth Mandaliya <[email protected]>
ParthMandaliya
force-pushed
the
update_private_attr_init
branch
from
June 13, 2024 08:26
14fc736
to
aa6f790
Compare
Review comments incorporated. Co-authored-by: Patrick Foley <[email protected]> Signed-off-by: Parth Mandaliya <[email protected]>
ParthMandaliya
force-pushed
the
update_private_attr_init
branch
from
June 13, 2024 08:28
5bc29ae
to
0930a5a
Compare
psfoley
requested changes
Jun 14, 2024
Review comments incorporated. Co-authored-by: Patrick Foley <[email protected]> Signed-off-by: Parth Mandaliya <[email protected]>
ParthMandaliya
force-pushed
the
update_private_attr_init
branch
from
June 15, 2024 11:35
e0b8551
to
a6342c0
Compare
psfoley
approved these changes
Jun 21, 2024
This was referenced Jun 24, 2024
manuelhsantana
pushed a commit
that referenced
this pull request
Jul 10, 2024
* Updated private_attrs initialization & Added testcases to test the same Signed-off-by: ishant162 <[email protected]> * Fixed typo Signed-off-by: ishant162 <[email protected]> * Updated Workflow_Interface_101_MNIST.ipynb & workflowinterface.rst Signed-off-by: ishant162 <[email protected]> * Incorporated Internal review comments Signed-off-by: ishant162 <[email protected]> * Incorporated Internal review comments Signed-off-by: Ishant Thakare <[email protected]> * Experimental Aggregator based workflow: Updated private_attrs initialization and added testcases to test the same Signed-off-by: Ishant Thakare <[email protected]> * Fixed lint errors Signed-off-by: Ishant Thakare <[email protected]> * Bug fix: fx workspace create Signed-off-by: Ishant Thakare <[email protected]> * Workspace Export: Supports initialization of private attributes directly Signed-off-by: Ishant Thakare <[email protected]> * Fixed lint errors Signed-off-by: Ishant Thakare <[email protected]> * Incorporated Internal review comments Signed-off-by: Ishant Thakare <[email protected]> * Updated 101_torch_cnn_mnist private_attrs Signed-off-by: Ishant Thakare <[email protected]> * Updated workflow_interface tutorials 1001, 104_keras, 401_MNIST Signed-off-by: Ishant Thakare <[email protected]> * Incorporated Internal review comments Signed-off-by: Ishant Thakare <[email protected]> * Resolving merge conflicts Signed-off-by: Ishant Thakare <[email protected]> * Updated import Signed-off-by: Ishant Thakare <[email protected]> * Fixed typo & updated federated plan Signed-off-by: Ishant Thakare <[email protected]> * Updated aggregator import Signed-off-by: Ishant Thakare <[email protected]> * Update docs/about/features_index/workflowinterface.rst Review comments incorporated. Co-authored-by: Patrick Foley <[email protected]> Signed-off-by: Parth Mandaliya <[email protected]> * Update docs/about/features_index/workflowinterface.rst Review comments incorporated. Co-authored-by: Patrick Foley <[email protected]> Signed-off-by: Parth Mandaliya <[email protected]> * Update docs/about/features_index/workflowinterface.rst Review comments incorporated. Co-authored-by: Patrick Foley <[email protected]> Signed-off-by: Parth Mandaliya <[email protected]> --------- Signed-off-by: ishant162 <[email protected]> Signed-off-by: Ishant Thakare <[email protected]> Signed-off-by: Parth Mandaliya <[email protected]> Co-authored-by: ParthMandaliya <[email protected]> Co-authored-by: Patrick Foley <[email protected]>
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.
Background
Currently, Workflow_Interface supports initialization of private attributes via a callable function, In case of ray backend If user directly specifies the private attributes then the Participants fails to initialize private attributes.
Change description
Modifications
Verification
Added Testcases to test the functionality of initialization of private attributes via both options (Workflow Interface & Experimental Aggregator based workflow):
- tests/github/experimental/testflow_privateattributes_initialization_with_both_options.py
- tests/github/experimental/testflow_privateattributes_initialization_without_callable.py
- tests/github/experimental/workspace/testcase_private_attributes_initialization_with_both_options
- tests/github/experimental/workspace/testcase_private_attributes_initialization_without_callable
Verified all testcases from tests/github/experimental
Verified all testcases from tests/github/experimental/workspace
Regression:
- openfl-workspace/experimental/ : All workspaces
- openfl-tutorials/experimental:
- Workflow_Interface_101_MNIST.ipynb
- Workflow_Interface_102_Aggregator_Validation.ipynb,
- Workflow_Interface_103_Cyclic_Institutional_Incremental_Learning.ipynb,
- Workflow_Interface_301_MNIST_Watermarking.ipynb
- Workflow_Interface_104_Keras_MNIST_with_GPU.ipynb
- Workflow_Interface_401_FedProx_with_Synthetic_nonIID.ipynb
- Workflow_Interface_401_MNIST_Aggregator_Validation_Ray_Watermarking.ipynb