Skip to content

Commit 00e7bf5

Browse files
Add a few docs to the default_config.cfg (explosion#9981)
* Clarify patience hyperparameter The current value for patience doesn't seem to indicate that it's pointing to the number of steps. It may be useful to specify that explicitly. Ref: explosion#7450 Ref: explosion#7465 * Update docs for max_steps
1 parent 55cf492 commit 00e7bf5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spacy/default_config.cfg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,14 @@ seed = ${system.seed}
6868
gpu_allocator = ${system.gpu_allocator}
6969
dropout = 0.1
7070
accumulate_gradient = 1
71-
# Controls early-stopping. 0 disables early stopping.
71+
# Controls early-stopping, i.e., the number of steps to continue without
72+
# improvement before stopping. 0 disables early stopping.
7273
patience = 1600
7374
# Number of epochs. 0 means unlimited. If >= 0, train corpus is loaded once in
7475
# memory and shuffled within the training loop. -1 means stream train corpus
7576
# rather than loading in memory with no shuffling within the training loop.
7677
max_epochs = 0
78+
# Maximum number of update steps to train for. 0 means an unlimited number of steps.
7779
max_steps = 20000
7880
eval_frequency = 200
7981
# Control how scores are printed and checkpoints are evaluated.

0 commit comments

Comments
 (0)