Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix flake8 error E266 in baseline template #2065

Merged
merged 2 commits into from
Jul 7, 2023
Merged
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
12 changes: 6 additions & 6 deletions baselines/baseline_template/baseline_template/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,31 @@ def main(cfg: DictConfig) -> None:
cfg : DictConfig
An omegaconf object that stores the hydra config.
"""
## 1. Print parsed config
# 1. Print parsed config
print(OmegaConf.to_yaml(cfg))

## 2. Prepare your dataset
# 2. Prepare your dataset
# here you should call a function in datasets.py that returns whatever is needed to:
# (1) ensure the server can access the dataset used to evaluate your model after
# aggregation
# (2) tell each client what dataset partitions they should use (e.g. a this could
# be a location in the file system, a list of dataloader, a list of ids to extract
# from a dataset, it's up to you)

## 3. Define your clients
# 3. Define your clients
# Define a function that returns another function that will be used during
# simulation to instantiate each individual client
# client_fn = client.<my_function_that_returns_a_function>()

## 4. Define your strategy
# 4. Define your strategy
# pass all relevant argument (including the global dataset used after aggregation,
# if needed by your method.)
# strategy = instantiate(cfg.strategy, <additional arguments if desired>)

## 5. Start Simulation
# 5. Start Simulation
# history = fl.simulation.start_simulation(<arguments for simulation>)

## 6. Save your results
# 6. Save your results
# Here you can save the `history` returned by the simulation and include
# also other buffers, statistics, info needed to be saved in order to later
# on generate the plots you provide in the README.md. You can for instance
Expand Down