{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# PlateauLRScheduler" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "In this tutorial we are going to be looking at the `PlateauLRScheduler` in the `timm` library." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "#hide\n", "%load_ext autoreload\n", "%autoreload 2" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "from timm.scheduler.plateau_lr import PlateauLRScheduler\n", "from nbdev.showdoc import show_doc" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/markdown": [ "
class PlateauLRScheduler[source]PlateauLRScheduler(**`optimizer`**, **`decay_rate`**=*`0.1`*, **`patience_t`**=*`10`*, **`verbose`**=*`True`*, **`threshold`**=*`0.0001`*, **`cooldown_t`**=*`0`*, **`warmup_t`**=*`0`*, **`warmup_lr_init`**=*`0`*, **`lr_min`**=*`0`*, **`mode`**=*`'max'`*, **`noise_range_t`**=*`None`*, **`noise_type`**=*`'normal'`*, **`noise_pct`**=*`0.67`*, **`noise_std`**=*`1.0`*, **`noise_seed`**=*`None`*, **`initialize`**=*`True`*) :: `Scheduler`\n",
"\n",
"Decay the LR by a factor every time the validation loss plateaus."
],
"text/plain": [
"