From efc2da65879a96da877b8c3e469130464489cc5b Mon Sep 17 00:00:00 2001 From: Adam Narozniak Date: Fri, 26 Jul 2024 17:11:36 +0200 Subject: [PATCH 1/3] Fix incorrectly rendered links --- datasets/doc/source/tutorial-use-partitioners.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/datasets/doc/source/tutorial-use-partitioners.ipynb b/datasets/doc/source/tutorial-use-partitioners.ipynb index 72fabda1504e..30ff55ede91d 100644 --- a/datasets/doc/source/tutorial-use-partitioners.ipynb +++ b/datasets/doc/source/tutorial-use-partitioners.ipynb @@ -40,7 +40,7 @@ "source": [ "### `IidPartitioner` Creation\n", "\n", - "Let's create (instantiate) the most basic partitioner, [`IidPartitioner`](https://flower.ai/docs/datasets/ref-api/flwr_datasets.partitioner.IidPartitioner.html#flwr_datasets.partitioner.IidPartitioner) and learn how it interacts with `FederatedDataset`." + "Let's create (instantiate) the most basic partitioner, [IidPartitioner](https://flower.ai/docs/datasets/ref-api/flwr_datasets.partitioner.IidPartitioner.html#flwr_datasets.partitioner.IidPartitioner) and learn how it interacts with `FederatedDataset`." ] }, { @@ -165,7 +165,7 @@ "source": [ "#### Creating non-IID partitions: Use ``PathologicalPartitioner``\n", "\n", - "Now, we are going to create partitions that have only a subset of labels in each partition by using [`PathologicalPartitioner`](https://flower.ai/docs/datasets/ref-api/flwr_datasets.partitioner.PathologicalPartitioner.html#flwr_datasets.partitioner.PathologicalPartitioner). In this scenario we have the exact control about the number of unique labels on each partition. The smaller the number is the more heterogenous the division gets. Let's have a look at how it works with `num_classes_per_partition=2`." + "Now, we are going to create partitions that have only a subset of labels in each partition by using [PathologicalPartitioner](https://flower.ai/docs/datasets/ref-api/flwr_datasets.partitioner.PathologicalPartitioner.html#flwr_datasets.partitioner.PathologicalPartitioner). In this scenario we have the exact control about the number of unique labels on each partition. The smaller the number is the more heterogenous the division gets. Let's have a look at how it works with `num_classes_per_partition=2`." ] }, { @@ -261,7 +261,7 @@ "source": [ "#### Creating non-IID partitions: Use ``DirichletPartitioner``\n", "\n", - "With the [`DirichletParitioner`](https://flower.ai/docs/datasets/ref-api/flwr_datasets.partitioner.DirichletPartitioner.html#flwr_datasets.partitioner.DirichletPartitioner), the primary tool for controlling heterogeneity is the `alpha` parameter; the smaller the value gets, the more heterogeneous the federated datasets are. Instead of choosing the exact number of classes on each partition, here we sample the probability distribution from the Dirichlet distribution, which tells how the samples associated with each class will be divided." + "With the [DirichletPartitioner](https://flower.ai/docs/datasets/ref-api/flwr_datasets.partitioner.DirichletPartitioner.html#flwr_datasets.partitioner.DirichletPartitioner), the primary tool for controlling heterogeneity is the `alpha` parameter; the smaller the value gets, the more heterogeneous the federated datasets are. Instead of choosing the exact number of classes on each partition, here we sample the probability distribution from the Dirichlet distribution, which tells how the samples associated with each class will be divided." ] }, { From f3bc45384c8ac37abdf8bd2d8edf7cdd90e06448 Mon Sep 17 00:00:00 2001 From: Adam Narozniak Date: Fri, 26 Jul 2024 17:12:15 +0200 Subject: [PATCH 2/3] Fix a bullet list --- datasets/doc/source/tutorial-quickstart.ipynb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/datasets/doc/source/tutorial-quickstart.ipynb b/datasets/doc/source/tutorial-quickstart.ipynb index ca6700aa31a3..fe71bdf58567 100644 --- a/datasets/doc/source/tutorial-quickstart.ipynb +++ b/datasets/doc/source/tutorial-quickstart.ipynb @@ -391,8 +391,11 @@ "## Use with PyTorch/NumPy/TensorFlow\n", "\n", "For more detailed instructions, go to:\n", + "\n", "* [how-to-use-with-pytorch](https://flower.ai/docs/datasets/how-to-use-with-pytorch.html)\n", + "\n", "* [how-to-use-with-numpy](https://flower.ai/docs/datasets/how-to-use-with-numpy.html)\n", + "\n", "* [how-to-use-with-tensorflow](https://flower.ai/docs/datasets/how-to-use-with-tensorflow.html)" ] }, @@ -443,7 +446,9 @@ "cell_type": "markdown", "id": "b93678a5", "metadata": {}, - "source": "The `Dataloader` created this way does not return a `Tuple` when iterating over it but a `Dict` with the names of the columns as keys and features as values. Look below for an example." + "source": [ + "The `Dataloader` created this way does not return a `Tuple` when iterating over it but a `Dict` with the names of the columns as keys and features as values. Look below for an example." + ] }, { "cell_type": "code", From a539ebd96244100732d6f5d44aa0a8956547400b Mon Sep 17 00:00:00 2001 From: Adam Narozniak Date: Fri, 26 Jul 2024 17:12:22 +0200 Subject: [PATCH 3/3] Fix redirects --- datasets/doc/source/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datasets/doc/source/conf.py b/datasets/doc/source/conf.py index 29840da4abc0..dcba63dd221c 100644 --- a/datasets/doc/source/conf.py +++ b/datasets/doc/source/conf.py @@ -111,7 +111,7 @@ def find_test_modules(package_path): # Sphinx redirects, implemented after the doc filename changes. # To prevent 404 errors and redirect to the new pages. redirects = { - "how-to-visualize-label-distribution.html": "tutorial-visualize-label-distribution.html", + "how-to-visualize-label-distribution": "tutorial-visualize-label-distribution.html", } # -- Options for HTML output -------------------------------------------------