Share via


GeneralityToProgressRatioRule(Single, Int32) Constructor

Definition

Create a rule which may terminate the training process when generality-to-progress ratio exceeds 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)

Parameters

threshold
Single

The maximum ratio gap (in percentage such as 0.01 for 1% and 0.5 for 50%).

windowSize
Int32

See WindowSize.

Applies to