Skip to content

docs(framework): Fix typo in PyTorch tutorial#6669

Open
aramendi wants to merge 1 commit intoflwrlabs:mainfrom
aramendi:patch-1
Open

docs(framework): Fix typo in PyTorch tutorial#6669
aramendi wants to merge 1 commit intoflwrlabs:mainfrom
aramendi:patch-1

Conversation

@aramendi
Copy link

@aramendi aramendi commented Mar 3, 2026

Docs: Fix typo in PyTorch tutorial (franction -> fraction)

Issue

Description

In the code snippet explaining the strategy initialization, there is a misspelling in the configuration key:

... unchanged

fraction_train: float = context.run_config["franction-train"]

Initialize FedAdagrad strategy

Related issues/PRs

None

Proposal

Suggested fix:
Correct the typo in the configuration key to match the expected parameter name:

... unchanged

fraction_train: float = context.run_config["fraction-train"]

Initialize FedAdagrad strategy

Explanation

The key franction-train contains a typo and would cause a KeyError or unexpected behavior since the standard parameter name is fraction-train. This PR fixes the spelling in the tutorial documentation.

Docs: Fix typo in PyTorch tutorial (franction -> fraction)
@github-actions github-actions bot added the Contributor Used to determine what PRs (mainly) come from external contributors. label Mar 3, 2026
@jafermarq
Copy link
Member

Thanks @aramendi ! I also note that a few lines above we also mention franction-train twice, could you help us fix that too?

@jafermarq jafermarq changed the title [Docs] Fix typo (franction -> fraction) in PyTorch tutorial docs(framework): Fix typo in PyTorch tutorial Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Contributor Used to determine what PRs (mainly) come from external contributors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants