# 迭代次数epochs

使用early-stopping策略确定迭代次数

问：什么是early-stopping策略？ 答：early-stopping策略是指当验证数据集的准确率达到饱和时停止迭代。

问：怎样算达到饱和？\
答：例如最近10次迭代的准确率都没有提升。

问：为什么是10次？\
10是一个经验数字。一开始可以稍微小一点。到后面应该适当调大。

早期不需要使用early-stoping策略停止迭代，因为需要overfitting的结果来调正则化参数。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://windmising.gitbook.io/nielsen-nndl/introduction-2/zen-yang-xuan-ze-chao-can-shu/3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
