LowProgressRule(Single, Int32) 构造函数

定义

创建一个规则,当验证分数的改进速度缓慢时,可能会终止训练过程。 如果最近 WindowSize 验证分数的平均值比最佳历史验证分数差,它将终止训练过程。

public LowProgressRule (float threshold = 0.01, int windowSize = 5);
new Microsoft.ML.Trainers.FastTree.LowProgressRule : single * int -> Microsoft.ML.Trainers.FastTree.LowProgressRule
Public Sub New (Optional threshold As Single = 0.01, Optional windowSize As Integer = 5)

参数

threshold
Single

(当前) 平均验证分数及其最佳历史值之间的百分比(如 0.01)和 50% ) 百分比(如 0.01)的最大差距 (。

windowSize
Int32

请参阅 WindowSize

适用于