Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

modify the import source of update_logger #491

Merged
merged 1 commit into from
Jan 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions materials/notebook/01_quick_start.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@
},
"outputs": [],
"source": [
"from federatedscope.core.auxiliaries.utils import setup_seed, update_logger\n",
"\n",
"from federatedscope.core.auxiliaries.utils import setup_seed\n",
"from federatedscope.core.auxiliaries.logging import update_logger\n",
"setup_seed(cfg.seed)\n",
"update_logger(cfg)\n"
]
Expand Down
5 changes: 3 additions & 2 deletions materials/notebook/02_start_your_own_case.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
"source": [
"from federatedscope.register import register_data\n",
"\n",
"def call_my_data(config):\n",
"def call_my_data(config, client_cfgs=None):\n",
" if config.data.type == \"mycvdata\":\n",
" data, modified_config = load_my_data(config)\n",
" return data, modified_config\n",
Expand Down Expand Up @@ -488,7 +488,8 @@
"outputs": [],
"source": [
"from federatedscope.core.auxiliaries.data_builder import get_data\n",
"from federatedscope.core.auxiliaries.utils import setup_seed, update_logger\n",
"from federatedscope.core.auxiliaries.utils import setup_seed\n",
"from federatedscope.core.auxiliaries.logging import update_logger\n",
"from federatedscope.core.fed_runner import FedRunner\n",
"from federatedscope.core.auxiliaries.worker_builder import get_server_cls, get_client_cls\n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions materials/notebook/03_personalized_FL.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@
"source": [
"from federatedscope.core.fed_runner import FedRunner\n",
"from federatedscope.core.auxiliaries.worker_builder import get_server_cls, get_client_cls\n",
"from federatedscope.core.auxiliaries.utils import setup_seed, update_logger\n",
"\n",
"from federatedscope.core.auxiliaries.utils import setup_seed\n",
"from federatedscope.core.auxiliaries.logging import update_logger\n",
"update_logger(pfl_cfg)\n",
"setup_seed(pfl_cfg.seed)\n",
"\n",
Expand Down