mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-08-22 12:20:50 +08:00
* New metric classes (#1326) * Create metrics package * Create metric.py * Create utils.py * Create __init__.py * add tests for metric utils * add docstrings for metrics utils * add function to recursively apply other function to collection * add tests for this function * update test * Update pytorch_lightning/metrics/metric.py Co-Authored-By: Jirka Borovec <Borda@users.noreply.github.com> * update metric name * remove example docs * fix tests * add metric tests * fix to tensor conversion * fix apply to collection * Update CHANGELOG.md * Update pytorch_lightning/metrics/metric.py Co-Authored-By: Jirka Borovec <Borda@users.noreply.github.com> * remove tests from init * add missing type annotations * rename utils to convertors * Create metrics.rst * Update index.rst * Update index.rst * Update pytorch_lightning/metrics/convertors.py Co-Authored-By: Jirka Borovec <Borda@users.noreply.github.com> * Update pytorch_lightning/metrics/convertors.py Co-Authored-By: Jirka Borovec <Borda@users.noreply.github.com> * Update pytorch_lightning/metrics/convertors.py Co-Authored-By: Jirka Borovec <Borda@users.noreply.github.com> * Update pytorch_lightning/metrics/metric.py Co-Authored-By: Jirka Borovec <Borda@users.noreply.github.com> * Update tests/utilities/test_apply_to_collection.py Co-Authored-By: Jirka Borovec <Borda@users.noreply.github.com> * Update tests/utilities/test_apply_to_collection.py Co-Authored-By: Jirka Borovec <Borda@users.noreply.github.com> * Update tests/metrics/convertors.py Co-Authored-By: Jirka Borovec <Borda@users.noreply.github.com> * Apply suggestions from code review Co-Authored-By: Jirka Borovec <Borda@users.noreply.github.com> * add doctest example * rename file and fix imports * added parametrized test * replace lambda with inlined function * rename apply_to_collection to apply_func * Separated class description from init args * Apply suggestions from code review Co-Authored-By: Jirka Borovec <Borda@users.noreply.github.com> * adjust random values * suppress output when seeding * remove gpu from doctest * Add requested changes and add ellipsis for doctest * forgot to push these files... * add explicit check for dtype to convert to * fix ddp tests * remove explicit ddp destruction Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com> * move dtype device mixin to more general place * refactor to general device dtype mixin * add initial metric package description * change default to none for mac os * pep8 * fix import * Update index.rst * Update ci-testing.yml * Apply suggestions from code review Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com> * Update CHANGELOG.md * Update pytorch_lightning/metrics/converters.py * readme * Update metric.py * Update pytorch_lightning/metrics/converters.py Co-authored-by: Jirka Borovec <Borda@users.noreply.github.com> Co-authored-by: William Falcon <waf2107@columbia.edu> Co-authored-by: Adrian Wälchli <aedu.waelchli@gmail.com> Co-authored-by: Jirka <jirka@pytorchlightning.ai>
124 lines
3.5 KiB
ReStructuredText
124 lines
3.5 KiB
ReStructuredText
.. PyTorch-Lightning documentation master file, created by
|
|
sphinx-quickstart on Fri Nov 15 07:48:22 2019.
|
|
You can adapt this file completely to your liking, but it should at least
|
|
contain the root `toctree` directive.
|
|
|
|
PyTorch Lightning Documentation
|
|
===============================
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
:name: start
|
|
:caption: Start Here
|
|
|
|
new-project
|
|
introduction_guide
|
|
|
|
.. toctree::
|
|
:maxdepth: 2
|
|
:name: docs
|
|
:caption: Python API
|
|
|
|
callbacks
|
|
hooks
|
|
lightning-module
|
|
loggers
|
|
metrics
|
|
trainer
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
:name: Community Examples
|
|
:caption: Community Examples
|
|
|
|
Contextual Emotion Detection (DoubleDistilBert) <https://github.com/PyTorchLightning/emotion_transformer>
|
|
FasterRCNN object detection + Hydra <https://github.com/PyTorchLightning/wheat>
|
|
Generative Adversarial Network <https://colab.research.google.com/drive/1F_RNcHzTfFuQf-LeKvSlud6x7jXYkG31#scrollTo=TyYOdg8g77P0>
|
|
Hyperparameter optimization with Optuna <https://github.com/optuna/optuna/blob/master/examples/pytorch_lightning_simple.py>
|
|
Image Inpainting using Partial Convolutions <https://github.com/ryanwongsa/Image-Inpainting>
|
|
MNIST on TPU <https://colab.research.google.com/drive/1-_LKx4HwAxl5M6xPJmqAAu444LTDQoa3#scrollTo=BHBz1_AnamN_>
|
|
NER (transformers, TPU) <https://colab.research.google.com/drive/1dBN-wwYUngLYVt985wGs_OKPlK_ANB9D>
|
|
NeuralTexture (CVPR) <https://github.com/PyTorchLightning/neuraltexture>
|
|
Recurrent Attentive Neural Process <https://github.com/PyTorchLightning/attentive-neural-processes>
|
|
Siamese Nets for One-shot Image Recognition <https://github.com/PyTorchLightning/Siamese-Neural-Networks>
|
|
Speech Transformers <https://github.com/PyTorchLightning/speech-transformer-pytorch_lightning>
|
|
Transformers transfer learning (Huggingface) <https://colab.research.google.com/drive/1F_RNcHzTfFuQf-LeKvSlud6x7jXYkG31#scrollTo=yr7eaxkF-djf>
|
|
Transformers text classification <https://github.com/ricardorei/lightning-text-classification>
|
|
VAE Library of over 18+ VAE flavors <https://github.com/AntixK/PyTorch-VAE>
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
:name: Tutorials
|
|
:caption: Tutorials
|
|
|
|
From PyTorch to PyTorch Lightning <https://towardsdatascience.com/from-pytorch-to-pytorch-lightning-a-gentle-introduction-b371b7caaf09>
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
:name: project structure
|
|
:caption: Recommended Lightning Project Layout
|
|
|
|
Lightning project seed <https://github.com/PyTorchLightning/pytorch-lightning-conference-seed>
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
:name: Common Use Cases
|
|
:caption: Common Use Cases
|
|
|
|
apex
|
|
slurm
|
|
child_modules
|
|
debugging
|
|
experiment_logging
|
|
experiment_reporting
|
|
early_stopping
|
|
fast_training
|
|
hooks
|
|
hyperparameters
|
|
lr_finder
|
|
multi_gpu
|
|
multiple_loaders
|
|
weights_loading
|
|
optimizers
|
|
profiler
|
|
single_gpu
|
|
sequences
|
|
training_tricks
|
|
transfer_learning
|
|
tpu
|
|
test_set
|
|
|
|
.. toctree::
|
|
:maxdepth: 1
|
|
:name: community
|
|
:caption: Community
|
|
|
|
|
|
CODE_OF_CONDUCT.md
|
|
CONTRIBUTING.md
|
|
BECOMING_A_CORE_CONTRIBUTOR.md
|
|
PULL_REQUEST_TEMPLATE.md
|
|
governance.md
|
|
|
|
Indices and tables
|
|
------------------
|
|
|
|
* :ref:`genindex`
|
|
* :ref:`modindex`
|
|
* :ref:`search`
|
|
|
|
|
|
|
|
.. This is here to make sphinx aware of the modules but not throw an error/warning
|
|
.. toctree::
|
|
:hidden:
|
|
|
|
api/pytorch_lightning.core
|
|
api/pytorch_lightning.callbacks
|
|
api/pytorch_lightning.loggers
|
|
api/pytorch_lightning.metrics
|
|
api/pytorch_lightning.overrides
|
|
api/pytorch_lightning.profiler
|
|
api/pytorch_lightning.trainer
|
|
api/pytorch_lightning.utilities
|