Skip to content

Commit 895cdf8

Browse files
Fix path for FedAvgRecipe (#3934)
Fix path for FedAvgRecipe. ### Description Fix path for FedAvgRecipe. ### 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. Co-authored-by: Chester Chen <[email protected]>
1 parent 60aefd7 commit 895cdf8

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
lines changed

examples/advanced/experiment-tracking/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This section demonstrates how NVIDIA FLARE supports flexible experiment tracking
77
These examples use the Recipe API with the `add_experiment_tracking()` utility for simplified configuration:
88

99
```python
10-
from nvflare.app_opt.pt.recipes import FedAvgRecipe
10+
from nvflare.app_opt.pt.recipes.fedavg import FedAvgRecipe
1111
from nvflare.recipe.utils import add_experiment_tracking
1212

1313
# Create your training recipe

examples/advanced/experiment-tracking/mlflow/hello-lightning-mlflow/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ as the deep learning training framework with **MLflow experiment tracking**.
1111
This example demonstrates PyTorch Lightning integration with MLflow tracking:
1212

1313
```python
14-
from nvflare.app_opt.pt.recipes import FedAvgRecipe
14+
from nvflare.app_opt.pt.recipes.fedavg import FedAvgRecipe
1515
from nvflare.recipe.utils import add_experiment_tracking
1616

1717
# Create FedAvg recipe for Lightning model

examples/advanced/experiment-tracking/mlflow/hello-lightning-mlflow/job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from model import LitNet
1818

19-
from nvflare.app_opt.pt.recipes import FedAvgRecipe
19+
from nvflare.app_opt.pt.recipes.fedavg import FedAvgRecipe
2020
from nvflare.recipe.utils import add_experiment_tracking
2121

2222
WORKSPACE = "/tmp/nvflare/jobs/workdir"

examples/advanced/experiment-tracking/mlflow/hello-pt-mlflow-client/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This example demonstrates **site-specific (decentralized) MLflow tracking** usin
1919
This example shows how to configure per-client MLflow tracking:
2020

2121
```python
22-
from nvflare.app_opt.pt.recipes import FedAvgRecipe
22+
from nvflare.app_opt.pt.recipes.fedavg import FedAvgRecipe
2323
from nvflare.app_opt.tracking.mlflow.mlflow_receiver import MLflowReceiver
2424
from nvflare.apis.analytix import ANALYTIC_EVENT_TYPE
2525

examples/advanced/experiment-tracking/mlflow/hello-pt-mlflow-client/job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from model import SimpleNetwork
1818

1919
from nvflare.apis.analytix import ANALYTIC_EVENT_TYPE
20-
from nvflare.app_opt.pt.recipes import FedAvgRecipe
20+
from nvflare.app_opt.pt.recipes.fedavg import FedAvgRecipe
2121
from nvflare.app_opt.tracking.mlflow.mlflow_receiver import MLflowReceiver
2222

2323
WORKSPACE = "/tmp/nvflare/jobs/workdir"

examples/advanced/experiment-tracking/mlflow/hello-pt-mlflow/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ python3 job.py
3535

3636
The Recipe API makes it simple:
3737
```python
38-
from nvflare.app_opt.pt.recipes import FedAvgRecipe
38+
from nvflare.app_opt.pt.recipes.fedavg import FedAvgRecipe
3939
from nvflare.recipe.utils import add_experiment_tracking
4040

4141
# Create training recipe

examples/advanced/experiment-tracking/mlflow/hello-pt-mlflow/job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from model import SimpleNetwork
1818

19-
from nvflare.app_opt.pt.recipes import FedAvgRecipe
19+
from nvflare.app_opt.pt.recipes.fedavg import FedAvgRecipe
2020
from nvflare.recipe.utils import add_experiment_tracking
2121

2222
WORKSPACE = "/tmp/nvflare/jobs/workdir"

examples/advanced/experiment-tracking/tensorboard/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This example demonstrates the **Recipe API** for easily adding TensorBoard strea
1313
This example uses the `FedAvgRecipe` with the `add_experiment_tracking()` utility to easily add TensorBoard streaming:
1414

1515
```python
16-
from nvflare.app_opt.pt.recipes import FedAvgRecipe
16+
from nvflare.app_opt.pt.recipes.fedavg import FedAvgRecipe
1717
from nvflare.recipe.utils import add_experiment_tracking
1818

1919
# Create training recipe

examples/advanced/experiment-tracking/tensorboard/job.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from model import SimpleNetwork
1616

17-
from nvflare.app_opt.pt.recipes import FedAvgRecipe
17+
from nvflare.app_opt.pt.recipes.fedavg import FedAvgRecipe
1818
from nvflare.recipe.utils import add_experiment_tracking
1919

2020
if __name__ == "__main__":

examples/advanced/experiment-tracking/wandb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ with **Weights & Biases (WandB)** experiment tracking.
1111
This example demonstrates Weights & Biases tracking with flexible options for server-side or client-side metric collection:
1212

1313
```python
14-
from nvflare.app_opt.pt.recipes import FedAvgRecipe
14+
from nvflare.app_opt.pt.recipes.fedavg import FedAvgRecipe
1515
from nvflare.recipe.utils import add_experiment_tracking
1616

1717
# Create FedAvg recipe

0 commit comments

Comments
 (0)