Skip to content

Commit

Permalink
Move example np codes into app_common (NVIDIA#510)
Browse files Browse the repository at this point in the history
* Move example np codes into app_common

* Fix format
  • Loading branch information
YuanTingHsieh authored May 11, 2022
1 parent 83ac4b0 commit 934abf1
Show file tree
Hide file tree
Showing 19 changed files with 402 additions and 686 deletions.
4 changes: 2 additions & 2 deletions examples/hello-numpy-cross-val/config/config_fed_client.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"submit_model"
],
"executor": {
"path": "np_trainer.NPTrainer",
"path": "nvflare.app_common.np.np_trainer.NPTrainer",
"args": {}
}
},
Expand All @@ -16,7 +16,7 @@
"validate"
],
"executor": {
"path": "np_validator.NPValidator"
"path": "nvflare.app_common.np.np_validator.NPValidator"
}
}
],
Expand Down
6 changes: 3 additions & 3 deletions examples/hello-numpy-cross-val/config/config_fed_server.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"components": [
{
"id": "persistor",
"path": "np_model_persistor.NPModelPersistor",
"path": "nvflare.app_common.np.np_model_persistor.NPModelPersistor",
"args": {}
},
{
Expand All @@ -25,12 +25,12 @@
},
{
"id": "model_locator",
"path": "np_model_locator.NPModelLocator",
"path": "nvflare.app_common.np.np_model_locator.NPModelLocator",
"args": {}
},
{
"id": "formatter",
"path": "np_formatter.NPFormatter",
"path": "nvflare.app_common.np.np_formatter.NPFormatter",
"args": {}
}
],
Expand Down
Empty file.
80 changes: 0 additions & 80 deletions examples/hello-numpy-cross-val/custom/np_model_persistor.py

This file was deleted.

204 changes: 0 additions & 204 deletions examples/hello-numpy-cross-val/custom/np_trainer.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"train"
],
"executor": {
"path": "np_trainer.NPTrainer",
"path": "nvflare.app_common.np.np_trainer.NPTrainer",
"args": {}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"components": [
{
"id": "persistor",
"path": "np_model_persistor.NPModelPersistor",
"path": "nvflare.app_common.np.np_model_persistor.NPModelPersistor",
"args": {}
},
{
Expand Down
Empty file.
Loading

0 comments on commit 934abf1

Please sign in to comment.