EarlyStop

public class EarlyStop : XGBCallback

Callback for early stop

  • Declaration

    Swift

    public let beforeIteration: Bool
  • Undocumented

    Declaration

    Swift

    public let stoppingRounds: Int
  • Declaration

    Swift

    public init(stoppingRounds: Int, maximize: Bool = false)

    Parameters

    stoppingRounds

    how many iterations allowed for no improving

    maximize

    if to maximize the evaluation metric

  • Declaration

    Swift

    public func callback(env: CallbackEnv) throws