{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## TrainingPhase and General scheduler" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Creates a scheduler that lets you train a model with following different [`TrainingPhase`](/callbacks.general_sched.html#TrainingPhase)." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [], "source": [ "from fastai.gen_doc.nbdoc import *\n", "from fastai.callbacks.general_sched import * \n", "from fastai.vision import *" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "
class
TrainingPhase
[source]TrainingPhase
(**`length`**:`int`, **`lrs`**:`Floats`, **`moms`**:`Floats`, **`lr_anneal`**:`AnnealFunc`=***`None`***, **`mom_anneal`**:`AnnealFunc`=***`None`***)"
],
"text/plain": [
"epoch | \n", "train_loss | \n", "valid_loss | \n", "accuracy | \n", "
---|---|---|---|
1 | \n", "0.185262 | \n", "0.164344 | \n", "0.945044 | \n", "
2 | \n", "0.140157 | \n", "0.129574 | \n", "0.954367 | \n", "
3 | \n", "0.124761 | \n", "0.123591 | \n", "0.958292 | \n", "
4 | \n", "0.109466 | \n", "0.107876 | \n", "0.964671 | \n", "
5 | \n", "0.099668 | \n", "0.091696 | \n", "0.966143 | \n", "
6 | \n", "0.087345 | \n", "0.085187 | \n", "0.970069 | \n", "
7 | \n", "0.085803 | \n", "0.084836 | \n", "0.971050 | \n", "