Contents

fitted(to:validateOn:eventHandler:)

Fits a boosted tree regressor model to a collection of examples.

Declaration

func fitted(to input: DataFrame, validateOn validation: DataFrame? = nil, eventHandler: EventHandler? = nil) async throws -> TreeRegressorModel

Parameters

  • input:

    A data frame containing examples used for fitting the transformer.

  • validation:

    A data frame containing examples used for validating the fitted transformer.

  • eventHandler:

    An event handler. This method reports maximum error and root-mean-square error metrics.

Return Value

The fitted boosted tree regressor model.

See Also

Fitting a regressor model