Skip to content

Commit

Permalink
Restructure Flower Datasets docs
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-narozniak committed Oct 26, 2023
1 parent dd4779f commit ce2aefd
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 18 deletions.
13 changes: 13 additions & 0 deletions datasets/doc/source/ref-api-FederatedDataset.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FederatedDataset
================

.. automodule:: flwr_datasets.federated_dataset

.. autoclass:: FederatedDataset
:members:

.. rubric:: Methods

.. autosummary::
~FederatedDataset.load_partition
~FederatedDataset.load_full
34 changes: 16 additions & 18 deletions datasets/doc/source/ref-api-flwr-datasets.rst
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
flwr\_datasets (Python API reference)
======================
=====================================

Federated Dataset
-----------------
.. autoclass:: flwr_datasets.federated_dataset.FederatedDataset
:members:
Welcome to the Flower Dataset API Reference Manual! The Flower Dataset library is a pivotal tool designed to address
the unique challenges of managing datasets in the realm of federated learning.

Here, you will find:

partitioner
-----------
* **Detailed Descriptions**: Understand the core components and functionalities of the Flower Dataset library.
* **Function, Class and Method Definitions**: Get specifications on inputs, outputs, and behaviors for each function class and method available.
* **Sample Code and Usage**: See the Flower Dataset library in action with short code snippets included in the docstrings.

.. automodule:: flwr_datasets.partitioner
For full examples please visit the tutorial section or Flower examples that work end to end using this library.

.. rubric:: Federated Dataset
.. toctree::
:maxdepth: 3

Partitioner
-----------
ref-api-FederatedDataset

.. autoclass:: flwr_datasets.partitioner.Partitioner
:members:
.. rubric:: Partitioners
.. toctree::
:maxdepth: 4


IID Partitioner
---------------

.. autoclass:: flwr_datasets.partitioner.IidPartitioner
:members:
ref-api-partitioner
13 changes: 13 additions & 0 deletions datasets/doc/source/ref-api-partitioner.IidPartitioner.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
partitioner.IidPartitioner
===========================================

.. autoclass:: flwr_datasets.partitioner.IidPartitioner
:members:
:inherited-members:

.. rubric:: Methods

.. autosummary::
~IidPartitioner.dataset
~IidPartitioner.load_partition
~IidPartitioner.is_dataset_assigned
12 changes: 12 additions & 0 deletions datasets/doc/source/ref-api-partitioner.Partitioner.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
partitioner.Partitioner
===================================

.. autoclass:: flwr_datasets.partitioner.Partitioner
:members:

.. rubric:: Methods

.. autosummary::
~Partitioner.dataset
~Partitioner.load_partition
~Partitioner.is_dataset_assigned
18 changes: 18 additions & 0 deletions datasets/doc/source/ref-api-partitioner.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
partitioner
============================

.. automodule:: flwr_datasets.partitioner

.. rubric:: Classes

.. autosummary::

Partitioner
IidPartitioner

.. rubric:: Structure

.. toctree::

ref-api-partitioner.Partitioner
ref-api-partitioner.IidPartitioner

0 comments on commit ce2aefd

Please sign in to comment.