Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

[docs] Reorganise API Reference #555

Merged
merged 32 commits into from
Jul 13, 2021
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
f748628
Add flash to docs
akihironitta Jul 8, 2021
925eb72
Add flash.core.serve to docs
akihironitta Jul 8, 2021
ea2eb0d
Add todo extension
akihironitta Jul 8, 2021
567e2a2
Fix format
akihironitta Jul 8, 2021
a478150
Add /data to .gitignore
akihironitta Jul 8, 2021
b438c39
Move tutorials out of API Reference
akihironitta Jul 8, 2021
03a0c7c
Add noindex
akihironitta Jul 8, 2021
8687771
Exclude flash.* members from data API docs
akihironitta Jul 8, 2021
ad28207
Update flash.core
akihironitta Jul 8, 2021
40cf598
Add docstring to FlashCallback
akihironitta Jul 8, 2021
e940bea
Remove callback note
akihironitta Jul 8, 2021
8c84ccc
Remove flash.core.data_module.DataModule in favor of flash.DataModule
akihironitta Jul 8, 2021
aa03d96
Merge branch 'master' into docs/api-ref
ethanwharris Jul 8, 2021
9e64c4a
Add missing docstring to Trainer's methods
akihironitta Jul 9, 2021
92b4e86
Update flash api ref
akihironitta Jul 9, 2021
ac299e3
Update flash.core api ref
akihironitta Jul 9, 2021
643ed4e
Merge branch 'master' into docs/api-ref
ethanwharris Jul 10, 2021
86b68fa
Don't remove docs/source/api
akihironitta Jul 12, 2021
b5d38c6
api/{flash,core,data,image}
akihironitta Jul 12, 2021
ea285da
Merge branch 'docs/api-ref' of github.com:PyTorchLightning/lightning-…
akihironitta Jul 12, 2021
48bfe5e
Merge branch 'master' into docs/api-ref
akihironitta Jul 12, 2021
d013017
api/{image,text,video,tabular,serve}
akihironitta Jul 12, 2021
0d1d493
udpate
akihironitta Jul 12, 2021
3b66b4a
make clean before make docs
akihironitta Jul 12, 2021
0a7d5a8
Remove :ref: for now
akihironitta Jul 12, 2021
a8d40ab
resolve bad-looking table
akihironitta Jul 12, 2021
f7f4325
Split classes and functions
akihironitta Jul 12, 2021
91b0856
Shorten paths to class/func
akihironitta Jul 13, 2021
84a7cac
Update docs/source/_static/main.css
akihironitta Jul 13, 2021
16f7a6f
Merge branch 'master' into docs/api-ref
ethanwharris Jul 13, 2021
f241cb5
Fix docs build
akihironitta Jul 13, 2021
20efd53
Merge branch 'master' into docs/api-ref
ethanwharris Jul 13, 2021
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
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ instance/

# Sphinx documentation
docs/_build/
docs/api/
docs/notebooks/
docs/source/api/generated/

# PyBuilder
target/
Expand Down Expand Up @@ -133,8 +136,6 @@ dmypy.json
# Pyre type checker
.pyre/

docs/notebooks/
docs/api/
titanic.csv
.vscode
.venv
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ clean:
rm -rf $(shell find . -name "mlruns")
rm -rf .mypy_cache
rm -rf .pytest_cache
rm -rf **/__pycache__
rm -rf ./docs/build
rm -rf ./docs/source/**/generated
rm -rf ./docs/source/api
3 changes: 3 additions & 0 deletions docs/source/_static/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
col {
akihironitta marked this conversation as resolved.
Show resolved Hide resolved
width: 50% !important;
}
14 changes: 14 additions & 0 deletions docs/source/_templates/classtemplate.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.. role:: hidden
:class: hidden-section
.. currentmodule:: {{ module }}


{{ name | underline }}

.. autoclass:: {{ name }}
:members:


..
autogenerated from source/_templates/classtemplate.rst
note it does not have :inherited-members:
81 changes: 81 additions & 0 deletions docs/source/api/core.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
##########
flash.core
##########

.. contents::
:depth: 1
:local:
:backlinks: top

flash.core.classification
_________________________

.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst

~flash.core.classification.Classes
~flash.core.classification.ClassificationSerializer
~flash.core.classification.ClassificationTask
~flash.core.classification.FiftyOneLabels
~flash.core.classification.Labels
~flash.core.classification.Logits
~flash.core.classification.PredsClassificationSerializer
~flash.core.classification.Probabilities

flash.core.finetuning
_____________________

.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst

~flash.core.finetuning.FlashBaseFinetuning
~flash.core.finetuning.FreezeUnfreeze
~flash.core.finetuning.NoFreeze
~flash.core.finetuning.UnfreezeMilestones

flash.core.integration.fiftyone
_______________________________

.. autosummary::
:toctree: generated/
:nosignatures:

~flash.core.integrations.fiftyone.utils.visualize

flash.core.model
________________

.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst

~flash.core.model.BenchmarkConvergenceCI
~flash.core.model.CheckDependenciesMeta
~flash.core.model.Task

flash.core.registry
___________________

.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst

~flash.core.registry.FlashRegistry

Utilities
_________

.. autosummary::
:toctree: generated/
:nosignatures:

~flash.core.trainer.from_argparse_args
~flash.core.utilities.apply_func.get_callable_name
~flash.core.utilities.apply_func.get_callable_dict
~flash.core.model.predict_context
177 changes: 177 additions & 0 deletions docs/source/api/data.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
###############
flash.core.data
###############

.. contents::
:depth: 1
:local:
:backlinks: top

flash.core.data.auto_dataset
____________________________

.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst

~flash.core.data.auto_dataset.AutoDataset
~flash.core.data.auto_dataset.BaseAutoDataset
~flash.core.data.auto_dataset.IterableAutoDataset

flash.core.data.base_viz
________________________

.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst

~flash.core.data.base_viz.BaseVisualization

flash.core.data.batch
________________________

.. autosummary::
:toctree: generated/
:nosignatures:

~flash.core.data.batch.default_uncollate

flash.core.data.callback
________________________

.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst

~flash.core.data.callback.BaseDataFetcher
~flash.core.data.callback.ControlFlow
~flash.core.data.callback.FlashCallback

flash.core.data.data_module
___________________________

.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst

~flash.core.data.data_module.DataModule

flash.core.data.data_pipeline
_____________________________

.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst

~flash.core.data.data_pipeline.DataPipeline
~flash.core.data.data_pipeline.DataPipelineState

flash.core.data.data_source
___________________________

.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst

~flash.core.data.data_source.DatasetDataSource
~flash.core.data.data_source.DataSource
~flash.core.data.data_source.DefaultDataKeys
~flash.core.data.data_source.DefaultDataSources
~flash.core.data.data_source.FiftyOneDataSource
~flash.core.data.data_source.ImageLabelsMap
~flash.core.data.data_source.LabelsState
~flash.core.data.data_source.MockDataset
~flash.core.data.data_source.NumpyDataSource
~flash.core.data.data_source.PathsDataSource
~flash.core.data.data_source.SequenceDataSource
~flash.core.data.data_source.TensorDataSource

.. autosummary::
:toctree: generated/
:nosignatures:

~flash.core.data.data_source.has_file_allowed_extension
~flash.core.data.data_source.has_len
~flash.core.data.data_source.make_dataset

flash.core.data.process
_______________________

.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst

~flash.core.data.process.BasePreprocess
~flash.core.data.process.DefaultPreprocess
~flash.core.data.process.DeserializerMapping
~flash.core.data.process.Deserializer
~flash.core.data.process.Postprocess
~flash.core.data.process.Preprocess
~flash.core.data.process.SerializerMapping
~flash.core.data.process.Serializer

flash.core.data.properties
__________________________

.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst

~flash.core.data.properties.ProcessState
~flash.core.data.properties.Properties

flash.core.data.splits
______________________

.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst

~flash.core.data.splits.SplitDataset

flash.core.data.transforms
__________________________

.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst

~flash.core.data.transforms.ApplyToKeys
~flash.core.data.transforms.KorniaParallelTransforms

.. autosummary::
:toctree: generated/
:nosignatures:

~flash.core.data.transforms.merge_transforms
~flash.core.data.transforms.kornia_collate

flash.core.data.utils
_____________________

.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst

~flash.core.data.utils.CurrentFuncContext
~flash.core.data.utils.CurrentRunningStageContext
~flash.core.data.utils.CurrentRunningStageFuncContext
~flash.core.data.utils.FuncModule

.. autosummary::
:toctree: generated/
:nosignatures:

~flash.core.data.utils.convert_to_modules
~flash.core.data.utils.download_data
17 changes: 17 additions & 0 deletions docs/source/api/flash.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#####
flash
#####

.. autosummary::
:toctree: generated/
:nosignatures:
:template: classtemplate.rst

~flash.core.data.data_source.DataSource
~flash.core.data.data_module.DataModule
~flash.core.data.callback.FlashCallback
~flash.core.data.process.Preprocess
~flash.core.data.process.Postprocess
~flash.core.data.process.Serializer
~flash.core.model.Task
~flash.core.trainer.Trainer
Loading