forked from NVIDIA/NVFlare
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FedStats Quantile and Tutorials Update (NVIDIA#3241)
## FedStats Quantile metrics * Replace t-digest python package ( which require python3-dev dependency) with fastdigest ( which requires cargo rust dependency). Make the installation of fastdigest optional * move make the quantile optional, only available when fastquantile is installed. ## Tutorial 2nd Pass Update 1. Chapter 1 -- introduction to logging section 2. Chapter 2 -- Update * Chapter 2.1 -- Expand the fed statistics with background and explanation * Chapter 2.2 -- Expand the Client API section with additional figure and details tutorials * Chapter 2.3 -- re-organized the section make client API goes first. Add a lot details for logistics regression, removed the Job API code, As it doesn't work right now. * Chapter 2.5 --recap, re-write the summary to avoid it as the repeat of the introduction 3. Chapter 1-2-3 grammar check update ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Quick tests passed locally by running `./runtest.sh`. - [ ] In-line docstrings updated. - [ ] Documentation updated.
- Loading branch information
1 parent
130ed82
commit db75f43
Showing
140 changed files
with
3,094 additions
and
2,976 deletions.
There are no files selected for viewing
File renamed without changes.
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
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
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
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
15 changes: 15 additions & 0 deletions
15
examples/advanced/federated-statistics/df_stats/install_cargo.sh
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,15 @@ | ||
|
||
# fastdigest (or its dependencies) requires Rust and Cargo to build. | ||
# You need to install Rust and Cargo on your Ubuntu system. Follow these steps: | ||
# Install Rust and Cargo | ||
# Run the following command to install Rust using rustup: | ||
|
||
|
||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | ||
# Then restart your terminal or run: | ||
|
||
source $HOME/.cargo/env | ||
# Verify Installation | ||
# Check if Rust and Cargo are installed correctly: | ||
rustc --version | ||
cargo --version |
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
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
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
"range": [0,120] | ||
} | ||
}, | ||
"percentile": { | ||
"quantile": { | ||
"*": [25, 50, 75] | ||
} | ||
}, | ||
|
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ numpy | |
pandas | ||
matplotlib | ||
jupyterlab | ||
tdigest | ||
|
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.