fitted(to:validateOn:eventHandler:)
Fits a boosted tree classifier model to a collection of examples.
Declaration
func fitted(to input: DataFrame, validateOn validation: DataFrame? = nil, eventHandler: EventHandler? = nil) async throws -> TreeClassifierModel<Label>Parameters
- input:
A data frame of examples.
- validation:
A data frame of validation examples.
- eventHandler:
An event handler. This method reports accuracy and loss metrics.
Return Value
The fitted boosted tree classifier model.