{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## CSV Logger" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [], "source": [ "from fastai.vision import *\n", "from fastai.gen_doc.nbdoc import *\n", "from fastai.callbacks import *" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "
class
CSVLogger
[source][test]CSVLogger
(**`learn`**:[`Learner`](/basic_train.html#Learner), **`filename`**:`str`=***`'history'`***) :: [`LearnerCallback`](/basic_train.html#LearnerCallback)\n",
"\n",
"epoch | \n", "train_loss | \n", "valid_loss | \n", "accuracy | \n", "error_rate | \n", "
---|---|---|---|---|
1 | \n", "0.586522 | \n", "0.433411 | \n", "0.935622 | \n", "0.064378 | \n", "
2 | \n", "0.448884 | \n", "0.187622 | \n", "0.949928 | \n", "0.050072 | \n", "
3 | \n", "0.345840 | \n", "0.130823 | \n", "0.957082 | \n", "0.042918 | \n", "
read_logged_file
[source][test]read_logged_file
()\n",
"\n",
"\n", " | epoch | \n", "train_loss | \n", "valid_loss | \n", "accuracy | \n", "error_rate | \n", "
---|---|---|---|---|---|
0 | \n", "1 | \n", "0.586522 | \n", "0.433411 | \n", "0.935622 | \n", "0.064378 | \n", "
1 | \n", "2 | \n", "0.448884 | \n", "0.187622 | \n", "0.949928 | \n", "0.050072 | \n", "
2 | \n", "3 | \n", "0.345840 | \n", "0.130823 | \n", "0.957082 | \n", "0.042918 | \n", "
on_train_begin
[source][test]on_train_begin
(**\\*\\*`kwargs`**:`Any`)\n",
"\n",
"No tests found for on_train_begin
. To contribute a test please refer to this guide and this discussion.
on_epoch_end
[source][test]on_epoch_end
(**`epoch`**:`int`, **`smooth_loss`**:`Tensor`, **`last_metrics`**:`MetricsList`, **\\*\\*`kwargs`**:`Any`) → `bool`\n",
"\n",
"No tests found for on_epoch_end
. To contribute a test please refer to this guide and this discussion.
on_train_end
[source][test]on_train_end
(**\\*\\*`kwargs`**:`Any`)\n",
"\n",
"No tests found for on_train_end
. To contribute a test please refer to this guide and this discussion.