GeneralityToProgressRatioRule(Single, Int32) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个规则,当通用与进度比率超过 threshold
时,可能会终止训练过程。
public GeneralityToProgressRatioRule(float threshold = 0.01, int windowSize = 5);
new Microsoft.ML.Trainers.FastTree.GeneralityToProgressRatioRule : single * int -> Microsoft.ML.Trainers.FastTree.GeneralityToProgressRatioRule
Public Sub New (Optional threshold As Single = 0.01, Optional windowSize As Integer = 5)
参数
- threshold
- Single
最大比率差距 (百分比,例如 0.01(1%)和 50% ) 的 0.5。
- windowSize
- Int32
请参阅 WindowSize。