Skip to content

Commit

Permalink
Change all name to path (#2817)
Browse files Browse the repository at this point in the history
Co-authored-by: Sean Yang <[email protected]>
  • Loading branch information
YuanTingHsieh and SYangster authored Aug 21, 2024
1 parent b96dc32 commit b9c1c29
Show file tree
Hide file tree
Showing 95 changed files with 233 additions and 233 deletions.
6 changes: 3 additions & 3 deletions docs/resources/init_weights_1_config_fed_server.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
"workflows": [
{
"id": "pre_train",
"name": "InitializeGlobalWeights",
"path": "nvflare.app_common.workflows.initialize_global_weights.InitializeGlobalWeights",
"args": {
"task_name": "get_weights"
}
},
{
"id": "scatter_and_gather",
"name": "ScatterAndGather",
"path": "nvflare.app_common.workflows.scatter_and_gather.ScatterAndGather",
"args": {
"min_clients": 2,
"num_rounds": 2,
Expand All @@ -58,7 +58,7 @@
},
{
"id": "cross_site_validate",
"name": "CrossSiteModelEval",
"path": "nvflare.app_common.workflows.cross_site_model_eval.CrossSiteModelEval",
"args": {
"model_locator_id": "model_locator"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
},
{
"id": "shareable_generator",
"name": "FullModelShareableGenerator",
"path": "nvflare.app_common.shareablegenerators.full_model_shareable_generator.FullModelShareableGenerator",
"args": {}
},
{
"id": "aggregator",
"name": "InTimeAccumulateWeightedAggregator",
"path": "nvflare.app_common.aggregators.intime_accumulate_model_aggregator.InTimeAccumulateWeightedAggregator",
"args": {}
},
{
"id": "model_selector",
"name": "IntimeModelSelector",
"path": "nvflare.app_common.widgets.intime_model_selector.IntimeModelSelector",
"args": {
"key_metric": "accuracy"
}
Expand All @@ -39,14 +39,14 @@
},
{
"id": "json_generator",
"name": "ValidationJsonGenerator",
"path": "nvflare.app_common.widgets.validation_json_generator.ValidationJsonGenerator",
"args": {}
}
],
"workflows": [
{
"id": "scatter_gather_ctl",
"name": "ScatterAndGather",
"path": "nvflare.app_common.workflows.scatter_and_gather.ScatterAndGather",
"args": {
"min_clients": "{min_clients}",
"num_rounds": "{num_rounds}",
Expand All @@ -61,7 +61,7 @@
},
{
"id": "cross_site_model_eval",
"name": "CrossSiteModelEval",
"path": "nvflare.app_common.workflows.cross_site_model_eval.CrossSiteModelEval",
"args": {
"model_locator_id": "model_locator",
"submit_model_timeout": 600,
Expand All @@ -70,4 +70,4 @@
}
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"executor": {
"id": "Executor",
"name": "LearnerExecutor",
"path": "nvflare.app_common.executors.learner_executor.LearnerExecutor",
"args": {
"learner_id": "brats-learner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
},
{
"id": "shareable_generator",
"name": "FullModelShareableGenerator",
"path": "nvflare.app_common.shareablegenerators.full_model_shareable_generator.FullModelShareableGenerator",
"args": {}
},
{
"id": "aggregator",
"name": "InTimeAccumulateWeightedAggregator",
"path": "nvflare.app_common.aggregators.intime_accumulate_model_aggregator.InTimeAccumulateWeightedAggregator",
"args": {}
},
{
"id": "model_selector",
"name": "IntimeModelSelector",
"path": "nvflare.app_common.widgets.intime_model_selector.IntimeModelSelector",
"args": {
"weigh_by_local_iter": true
}
Expand All @@ -55,7 +55,7 @@
"workflows": [
{
"id": "scatter_and_gather",
"name": "ScatterAndGather",
"path": "nvflare.app_common.workflows.scatter_and_gather.ScatterAndGather",
"args": {
"min_clients": "{min_clients}",
"num_rounds": "{num_rounds}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"executor": {
"id": "Executor",
"name": "LearnerExecutor",
"path": "nvflare.app_common.executors.learner_executor.LearnerExecutor",
"args": {
"learner_id": "brats-learner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
},
{
"id": "shareable_generator",
"name": "FullModelShareableGenerator",
"path": "nvflare.app_common.shareablegenerators.full_model_shareable_generator.FullModelShareableGenerator",
"args": {}
},
{
"id": "aggregator",
"name": "InTimeAccumulateWeightedAggregator",
"path": "nvflare.app_common.aggregators.intime_accumulate_model_aggregator.InTimeAccumulateWeightedAggregator",
"args": {}
},
{
"id": "model_selector",
"name": "IntimeModelSelector",
"path": "nvflare.app_common.widgets.intime_model_selector.IntimeModelSelector",
"args": {
"weigh_by_local_iter": true
}
Expand All @@ -55,7 +55,7 @@
"workflows": [
{
"id": "scatter_and_gather",
"name": "ScatterAndGather",
"path": "nvflare.app_common.workflows.scatter_and_gather.ScatterAndGather",
"args": {
"min_clients": "{min_clients}",
"num_rounds": "{num_rounds}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"executor": {
"id": "Executor",
"name": "LearnerExecutor",
"path": "nvflare.app_common.executors.learner_executor.LearnerExecutor",
"args": {
"learner_id": "brats-learner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
},
{
"id": "shareable_generator",
"name": "FullModelShareableGenerator",
"path": "nvflare.app_common.shareablegenerators.full_model_shareable_generator.FullModelShareableGenerator",
"args": {}
},
{
"id": "aggregator",
"name": "InTimeAccumulateWeightedAggregator",
"path": "nvflare.app_common.aggregators.intime_accumulate_model_aggregator.InTimeAccumulateWeightedAggregator",
"args": {}
},
{
"id": "model_selector",
"name": "IntimeModelSelector",
"path": "nvflare.app_common.widgets.intime_model_selector.IntimeModelSelector",
"args": {
"weigh_by_local_iter": true
}
Expand All @@ -55,7 +55,7 @@
"workflows": [
{
"id": "scatter_and_gather",
"name": "ScatterAndGather",
"path": "nvflare.app_common.workflows.scatter_and_gather.ScatterAndGather",
"args": {
"min_clients": "{min_clients}",
"num_rounds": "{num_rounds}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
{
"id": "model_selector",
"name": "IntimeModelSelector",
"path": "nvflare.app_common.widgets.intime_model_selector.IntimeModelSelector",
"args": {}
},
{
Expand All @@ -65,14 +65,14 @@
},
{
"id": "json_generator",
"name": "ValidationJsonGenerator",
"path": "nvflare.app_common.widgets.validation_json_generator.ValidationJsonGenerator",
"args": {}
}
],
"workflows": [
{
"id": "scatter_gather_ctl",
"name": "ScatterAndGather",
"path": "nvflare.app_common.workflows.scatter_and_gather.ScatterAndGather",
"args": {
"min_clients" : "{min_clients}",
"num_rounds" : "{num_rounds}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
},
{
"id": "analytic_sender",
"name": "AnalyticsSender",
"path": "nvflare.app_common.widgets.streaming.AnalyticsSender",
"args": {
"event_type": "analytix_log_stats"
}
},
{
"id": "tb_analytics_receive",
"name": "TBAnalyticsReceiver",
"path": "nvflare.app_opt.tracking.tb.tb_receiver.TBAnalyticsReceiver",
"args": {
"events": [
"analytix_log_stats"
Expand All @@ -48,7 +48,7 @@
},
{
"id": "event_to_fed",
"name": "ConvertToFedEvent",
"path": "nvflare.app_common.widgets.convert_to_fed_event.ConvertToFedEvent",
"args": {
"events_to_convert": [
"analytix_log_stats"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@
},
{
"id": "shareable_generator",
"name": "FullModelShareableGenerator",
"path": "nvflare.app_common.shareablegenerators.full_model_shareable_generator.FullModelShareableGenerator",
"args": {}
},
{
"id": "aggregator",
"name": "InTimeAccumulateWeightedAggregator",
"path": "nvflare.app_common.aggregators.intime_accumulate_model_aggregator.InTimeAccumulateWeightedAggregator",
"args": {}
},
{
"id": "model_selector",
"name": "IntimeModelSelector",
"path": "nvflare.app_common.widgets.intime_model_selector.IntimeModelSelector",
"args": {}
},
{
Expand All @@ -53,12 +53,12 @@
},
{
"id": "json_generator",
"name": "ValidationJsonGenerator",
"path": "nvflare.app_common.widgets.validation_json_generator.ValidationJsonGenerator",
"args": {}
},
{
"id": "tb_analytics_receive",
"name": "TBAnalyticsReceiver",
"path": "nvflare.app_opt.tracking.tb.tb_receiver.TBAnalyticsReceiver",
"args": {
"events": [
"fed.analytix_log_stats"
Expand All @@ -69,7 +69,7 @@
"workflows": [
{
"id": "scatter_gather_ctl",
"name": "ScatterAndGather",
"path": "nvflare.app_common.workflows.scatter_and_gather.ScatterAndGather",
"args": {
"min_clients": "{min_clients}",
"num_rounds": "{num_rounds}",
Expand All @@ -84,7 +84,7 @@
},
{
"id": "cross_site_model_eval",
"name": "CrossSiteModelEval",
"path": "nvflare.app_common.workflows.cross_site_model_eval.CrossSiteModelEval",
"args": {
"model_locator_id": "model_locator",
"submit_model_timeout": 600,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"id": "model_selector",
"name": "IntimeModelSelector",
"path": "nvflare.app_common.widgets.intime_model_selector.IntimeModelSelector",
"args": {}
},
{
Expand All @@ -34,14 +34,14 @@
},
{
"id": "json_generator",
"name": "ValidationJsonGenerator",
"path": "nvflare.app_common.widgets.validation_json_generator.ValidationJsonGenerator",
"args": {}
}
],
"workflows": [
{
"id": "fedavg_ctl",
"name": "FedAvg",
"path": "nvflare.app_common.workflows.fed_avg.FedAvg",
"args": {
"num_clients": "{num_clients}",
"num_rounds": "{num_rounds}",
Expand All @@ -50,7 +50,7 @@
},
{
"id": "cross_site_model_eval",
"name": "CrossSiteModelEval",
"path": "nvflare.app_common.workflows.cross_site_model_eval.CrossSiteModelEval",
"args": {
"model_locator_id": "model_locator",
"submit_model_timeout": 600,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
{
"id": "model_selector",
"name": "IntimeModelSelector",
"path": "nvflare.app_common.widgets.intime_model_selector.IntimeModelSelector",
"args": {}
},
{
Expand All @@ -43,14 +43,14 @@
},
{
"id": "json_generator",
"name": "ValidationJsonGenerator",
"path": "nvflare.app_common.widgets.validation_json_generator.ValidationJsonGenerator",
"args": {}
}
],
"workflows": [
{
"id": "fedavg_ctl",
"name": "FedAvg",
"path": "nvflare.app_common.workflows.fed_avg.FedAvg",
"args": {
"num_clients": "{num_clients}",
"num_rounds": "{num_rounds}",
Expand All @@ -59,7 +59,7 @@
},
{
"id": "cross_site_model_eval",
"name": "CrossSiteModelEval",
"path": "nvflare.app_common.workflows.cross_site_model_eval.CrossSiteModelEval",
"args": {
"model_locator_id": "model_locator",
"submit_model_timeout": 600,
Expand Down
Loading

0 comments on commit b9c1c29

Please sign in to comment.