-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github.io documentation restructuring (#909)
* updating documentation template Signed-off-by: kta-intel <[email protected]> * WIP quickstart guide Signed-off-by: kta-intel <[email protected]> * documentation updates Signed-off-by: kta-intel <[email protected]> * more updates to getting started Signed-off-by: kta-intel <[email protected]> * more get_started docs Signed-off-by: kta-intel <[email protected]> * getting_started updates Signed-off-by: kta-intel <[email protected]> * documentation overhaul. restructuring github.io Signed-off-by: kta-intel <[email protected]> * lint fix Signed-off-by: kta-intel <[email protected]> * addressing various comments, fixing typos, code snippets, etc Signed-off-by: kta-intel <[email protected]> * add /docs/workflow_interface.rst Signed-off-by: kta-intel <[email protected]> * remove /docs/workflow_interface.rst Signed-off-by: kta-intel <[email protected]> * add add /docs/workflow_interface.rst Signed-off-by: kta-intel <[email protected]> * remove /docs/workflow_interface.rst Signed-off-by: kta-intel <[email protected]> * fixing typo in workflowinterface.rst Signed-off-by: kta-intel <[email protected]> --------- Signed-off-by: kta-intel <[email protected]>
- Loading branch information
1 parent
48d5558
commit a59a827
Showing
56 changed files
with
3,231 additions
and
1,869 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.toctree-expand { | ||
display: none; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Blogs & Publications | ||
==================== | ||
|
||
* [Federated learning enables big data for rare cancer boundary detection, Dec 2022](https://www.nature.com/articles/s41467-022-33407-5) | ||
* [How OpenFL Can Boost Your Federated Learning Project, 2022](https://www.intel.com/content/www/us/en/developer/articles/technical/how-openfl-boost-your-federated-learning-project.html) | ||
* [OpenFL: the open federated learning library, Oct 2022](https://iopscience.iop.org/article/10.1088/1361-6560/ac97d9/pdf) | ||
* [Federated Learning With OpenFL for Microservices Applications, Aug 2022](https://blogs.vmware.com/opensource/2022/08/31/federated-learning-with-openfl-for-microservices-applications-2/) | ||
* [A Path Towards Secure Federated Learning, Apr 2022](https://medium.com/openfl/a-path-towards-secure-federated-learning-c2fb16d5e66e) | ||
* [Go Federated with OpenFL: Put your Deep Learning pipeline on Federated rails, Oct 2021](https://towardsdatascience.com/go-federated-with-openfl-8bc145a5ead1) | ||
* [Federated learning in medicine: facilitating multi-institutional collaborations without sharing patient data, Jul 2020](https://www.nature.com/articles/s41598-020-69250-1) | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
.. # Copyright (C) 2020-2024 Intel Corporation | ||
.. # SPDX-License-Identifier: Apache-2.0 | ||
========== | ||
Features | ||
========== | ||
|
||
.. _running_a_federation: | ||
|
||
--------------------- | ||
Running a Federation | ||
--------------------- | ||
|
||
|productName| has multiple options for setting up a federation and running experiments, depending on the users needs. | ||
|
||
Task Runner | ||
Define an experiment and distribute it manually. All participants can verify model code and FL plan prior to execution. | ||
The federation is terminated when the experiment is finished. Formerly known as the aggregator-based workflow. | ||
`For more info <features_index/taskrunner.html>`_ | ||
|
||
.. toctree:: | ||
:hidden: | ||
|
||
features_index/taskrunner | ||
|
||
Interactive | ||
Setup long-lived components to run many experiments in series. Recommended for FL research when many changes to model, dataloader, or hyperparameters are expected. | ||
Formerly known as the director-based workflow. | ||
`For more info <features_index/interactive.html>`_ | ||
|
||
.. toctree:: | ||
:hidden: | ||
|
||
features_index/interactive | ||
|
||
Workflow Interface (Experimental) | ||
Formulate the experiment as a series of tasks, or a flow. Every flow begins with the start task and concludes with end. | ||
Heavily influenced by the interface and design of Netflix's Metaflow, the popular framework for data scientists. | ||
`For more info <features_index/workflowinterface.html>`_ | ||
|
||
.. toctree:: | ||
:hidden: | ||
|
||
features_index/workflowinterface | ||
|
||
.. _aggregation_algorithms: | ||
|
||
----------------------- | ||
Aggregation Algorithms | ||
----------------------- | ||
|
||
FedAvg | ||
Paper: `McMahan et al., 2017 <https://arxiv.org/pdf/1602.05629.pdf>`_ | ||
Default aggregation algorithm in |productName|. Multiplies local model weights with relative data size and averages this multiplication result. | ||
|
||
FedProx | ||
Paper: `Li et al., 2020 <https://arxiv.org/abs/1812.06127>`_ | ||
|
||
FedProx in |productName| is implemented as a custom optimizer for PyTorch/TensorFlow. In order to use FedProx, do the following: | ||
|
||
1. PyTorch: | ||
|
||
- replace your optimizer with SGD-based :class:`openfl.utilities.optimizers.torch.FedProxOptimizer` | ||
or Adam-based :class:`openfl.utilities.optimizers.torch.FedProxAdam`. | ||
Also, you should save model weights for the next round via calling `.set_old_weights()` method of the optimizer | ||
before the training epoch. | ||
|
||
2. TensorFlow: | ||
|
||
- replace your optimizer with SGD-based :py:class:`openfl.utilities.optimizers.keras.FedProxOptimizer`. | ||
|
||
For more details, see :code:`../openfl-tutorials/Federated_FedProx_*_MNIST_Tutorial.ipynb` where * is the framework name. | ||
|
||
FedOpt | ||
Paper: `Reddi et al., 2020 <https://arxiv.org/abs/2003.00295>`_ | ||
|
||
FedOpt in |productName|: :ref:`adaptive_aggregation_functions` | ||
|
||
FedCurv | ||
Paper: `Shoham et al., 2019 <https://arxiv.org/abs/1910.07796>`_ | ||
|
||
Requires PyTorch >= 1.9.0. Other frameworks are not supported yet. | ||
|
||
Use :py:class:`openfl.utilities.fedcurv.torch.FedCurv` to override train function using :code:`.get_penalty()`, :code:`.on_train_begin()`, and :code:`.on_train_end()` methods. | ||
In addition, you should override default :code:`AggregationFunction` of the train task with :class:`openfl.interface.aggregation_functions.FedCurvWeightedAverage`. | ||
See :code:`PyTorch_Histology_FedCurv` tutorial in :code:`../openfl-tutorials/interactive_api` directory for more details. | ||
|
||
.. _federated_evaluation: | ||
|
||
--------------------- | ||
Federated Evaluation | ||
--------------------- | ||
|
||
Evaluate the accuracy and performance of your model on data distributed across decentralized nodes without comprimising data privacy and security. `For more info <features_index/fed_eval.html>`_ | ||
|
||
.. toctree:: | ||
:hidden: | ||
|
||
features_index/fed_eval | ||
|
||
.. _privacy_meter: | ||
|
||
--------------------- | ||
Privacy Meter | ||
--------------------- | ||
|
||
Quantitatively audit data privacy in statistical and machine learning algorithms. `For more info <features_index/privacy_meter.html>`_ | ||
|
||
.. toctree:: | ||
:hidden: | ||
|
||
features_index/privacy_meter | ||
|
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
Oops, something went wrong.