語言

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

最大差距(百分比為1% 0.01,50%0.5)與(當前)平均驗證分數與最佳歷史值之間的差距。

windowSize
Int32

參見 WindowSize。

適用於