mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-11 12:31:23 +08:00
@@ -11,7 +11,7 @@ Enable Early Stopping
|
||||
---------------------
|
||||
There are two ways to enable early stopping.
|
||||
|
||||
.. note:: See: :ref:`trainer`
|
||||
.. seealso:: :ref:`trainer`
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@@ -35,4 +35,4 @@ To disable early stopping pass ``False`` to the `early_stop_callback`.
|
||||
Note that ``None`` will not disable early stopping but will lead to the
|
||||
default behaviour.
|
||||
|
||||
.. note:: See: :ref:`trainer`
|
||||
.. seealso:: :ref:`trainer`
|
||||
|
||||
@@ -7,7 +7,7 @@ Comet.ml
|
||||
`Comet.ml <https://www.comet.ml/site/>`_ is a third-party logger.
|
||||
To use CometLogger as your logger do the following.
|
||||
|
||||
.. note:: See: :ref:`comet` docs.
|
||||
.. seealso:: :ref:`comet` docs.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@@ -38,7 +38,7 @@ Neptune.ai
|
||||
`Neptune.ai <https://neptune.ai/>`_ is a third-party logger.
|
||||
To use Neptune.ai as your logger do the following.
|
||||
|
||||
.. note:: See: :ref:`neptune` docs.
|
||||
.. seealso:: :ref:`neptune` docs.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@@ -68,7 +68,7 @@ allegro.ai TRAINS
|
||||
`allegro.ai <https://github.com/allegroai/trains/>`_ is a third-party logger.
|
||||
To use TRAINS as your logger do the following.
|
||||
|
||||
.. note:: See: :ref:`trains` docs.
|
||||
.. seealso:: :ref:`trains` docs.
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@@ -95,7 +95,7 @@ Tensorboard
|
||||
|
||||
To use `Tensorboard <https://pytorch.org/docs/stable/tensorboard.html>`_ as your logger do the following.
|
||||
|
||||
.. note:: See: TensorBoardLogger :ref:`tf-logger`
|
||||
.. seealso:: TensorBoardLogger :ref:`tf-logger`
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@@ -121,7 +121,7 @@ Test Tube
|
||||
`Test Tube <https://github.com/williamFalcon/test-tube>`_ is a tensorboard logger but with nicer file structure.
|
||||
To use TestTube as your logger do the following.
|
||||
|
||||
.. note:: See: TestTube :ref:`testTube`
|
||||
.. seealso:: TestTube :ref:`testTube`
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@@ -146,7 +146,7 @@ Wandb
|
||||
`Wandb <https://www.wandb.com/>`_ is a third-party logger.
|
||||
To use Wandb as your logger do the following.
|
||||
|
||||
.. note:: See: :ref:`wandb` docs
|
||||
.. seealso:: :ref:`wandb` docs
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ Control log writing frequency
|
||||
Writing to a logger can be expensive. In Lightning you can set the interval at which you
|
||||
want to log using this trainer flag.
|
||||
|
||||
.. note:: See: :ref:`trainer`
|
||||
.. seealso:: :ref:`trainer`
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ Force training for min or max epochs
|
||||
-------------------------------------
|
||||
It can be useful to force training for a minimum number of epochs or limit to a max number.
|
||||
|
||||
.. note:: See: :ref:`trainer`
|
||||
.. seealso:: :ref:`trainer`
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
||||
@@ -472,7 +472,7 @@ First, change the runtime to TPU (and reinstall lightning).
|
||||
|
||||
Next, install the required xla library (adds support for PyTorch on TPUs)
|
||||
|
||||
.. code-block:: python
|
||||
.. code-block::
|
||||
|
||||
import collections
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
@@ -7,7 +7,7 @@ Accumulate gradients
|
||||
Accumulated gradients runs K small batches of size N before doing a backwards pass.
|
||||
The effect is a large effective batch size of size KxN.
|
||||
|
||||
.. note:: See: :ref:`trainer`
|
||||
.. seealso:: :ref:`trainer`
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
@@ -20,7 +20,7 @@ Gradient Clipping
|
||||
Gradient clipping may be enabled to avoid exploding gradients. Specifically, this will `clip the gradient
|
||||
norm <https://pytorch.org/docs/stable/nn.html#torch.nn.utils.clip_grad_norm_>`_ computed over all model parameters together.
|
||||
|
||||
.. note:: See: :ref:`trainer`
|
||||
.. seealso:: :ref:`trainer`
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
||||
Reference in New Issue
Block a user