Share via


GeneralityLossRule(Single) Constructor

Definition

Create a rule which may terminate the training process in case of loss of generality. The loss of generality means the specified score on validation start increasing.

public GeneralityLossRule (float threshold = 0.01);
new Microsoft.ML.Trainers.FastTree.GeneralityLossRule : single -> Microsoft.ML.Trainers.FastTree.GeneralityLossRule
Public Sub New (Optional threshold As Single = 0.01)

Parameters

threshold
Single

The maximum gap (in percentage such as 0.01 for 1% and 0.5 for 50%) between the (current) validation score and its best historical value.

Applies to