lightning/pl_examples
Justus Schock e2b1967b38
Fix Imagenet example (#10179)
2021-10-29 12:05:05 +00:00
..
basic_examples Update README page in pl_examples folder (#10114) 2021-10-26 17:38:56 +00:00
domain_templates Fix Imagenet example (#10179) 2021-10-29 12:05:05 +00:00
ipu_examples Replace `yapf` with `black` (#7783) 2021-07-26 13:37:35 +02:00
loop_examples Add Yield loop example (#9983) 2021-10-25 14:26:36 +00:00
README.md Update README page in pl_examples folder (#10114) 2021-10-26 17:38:56 +00:00
__init__.py Replace `yapf` with `black` (#7783) 2021-07-26 13:37:35 +02:00
bug_report_model.py Add `enable_model_summary` flag and deprecate `weights_summary` (#9699) 2021-10-13 17:20:54 +05:30
run_examples.sh Call any trainer function from the `LightningCLI` (#7508) 2021-08-28 04:43:14 +00:00
test_examples.py Call any trainer function from the `LightningCLI` (#7508) 2021-08-28 04:43:14 +00:00

README.md

Examples

Our most robust examples showing all sorts of implementations can be found in our sister library Lightning Bolts.


Basic examples

In this folder we add several starter examples:


Domain examples

This folder contains older examples. You should instead use the examples in Lightning Bolts for advanced use cases.


Loop examples

Contains implementations leveraging loop customization to enhance the Trainer with new optimization routines.

  • K-fold Cross Validation Loop: Implemenation of cross validation in a loop and special datamodule.
  • Yield Loop: Enables yielding from the training_step like in a Python generator. Useful for automatic optimization with multiple optimizers.