From ec0d840ab5eaff652ce9de7e6bbe345e458ee447 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Mon, 22 Apr 2019 14:31:32 +0200 Subject: [PATCH] Document early stopping --- website/docs/api/cli.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/docs/api/cli.md b/website/docs/api/cli.md index 7743c133b..474448d60 100644 --- a/website/docs/api/cli.md +++ b/website/docs/api/cli.md @@ -198,7 +198,7 @@ will only train the tagger and parser. ```bash $ python -m spacy train [lang] [output_path] [train_path] [dev_path] -[--base-model] [--pipeline] [--vectors] [--n-iter] [--n-examples] [--use-gpu] +[--base-model] [--pipeline] [--vectors] [--n-iter] [--n-early-stopping] [--n-examples] [--use-gpu] [--version] [--meta-path] [--init-tok2vec] [--parser-multitasks] [--entity-multitasks] [--gold-preproc] [--noise-level] [--learn-tokens] [--verbose] @@ -214,6 +214,7 @@ $ python -m spacy train [lang] [output_path] [train_path] [dev_path] | `--pipeline`, `-p` 2.1 | option | Comma-separated names of pipeline components to train. Defaults to `'tagger,parser,ner'`. | | `--vectors`, `-v` | option | Model to load vectors from. | | `--n-iter`, `-n` | option | Number of iterations (default: `30`). | +| `--n-early-stopping`, `-ne` | option | Maximum number of training epochs without dev accuracy improvement. | | `--n-examples`, `-ns` | option | Number of examples to use (defaults to `0` for all examples). | | `--use-gpu`, `-g` | option | Whether to use GPU. Can be either `0`, `1` or `-1`. | | `--version`, `-V` | option | Model version. Will be written out to the model's `meta.json` after training. |