Structures

The following structures are available globally.

  • Environment used for callbacks, what can be accessed by method callback()

    Declaration

    Swift

    public struct CallbackEnv

    Parameters

    model

    Booster? - the Booster used when calling callback in training, when calling xgboost().

    cvPacks

    [CVPack]? - the CVPacks used when calling callback in cross validation, when calling xgboostCV().

    currentIter

    Int

    beginIter

    Int

    endIter

    Int

    evalResult

    evaluation result during training, when calling xgboost().

  • A simple callback printer

    See more

    Declaration

    Swift

    public struct SimplePrintEvalution : XGBCallback