---
title: MLBoostedTreeClassifier
framework: createml
role: symbol
role_heading: Structure
path: createml/mlboostedtreeclassifier
---

# MLBoostedTreeClassifier

A classifier based on a collection of decision trees combined with gradient boosting.

## Declaration

```swift
struct MLBoostedTreeClassifier
```

## Overview

Overview A boosted tree classifier combines several MLDecisionTreeClassifier models (a technique known as ensemble learning) by training each model to correct the errors of the preceding model. This model is useful for handling numerical and categorical features, but is less suitable for sparse data such as text.

## Topics

### Training a boosted tree classifier asynchronously

- [train(trainingData:targetColumn:featureColumns:parameters:sessionParameters:)](createml/mlboostedtreeclassifier/train(trainingdata:targetcolumn:featurecolumns:parameters:sessionparameters:).md)
- [makeTrainingSession(trainingData:targetColumn:featureColumns:parameters:sessionParameters:)](createml/mlboostedtreeclassifier/maketrainingsession(trainingdata:targetcolumn:featurecolumns:parameters:sessionparameters:).md)
- [resume(_:)](createml/mlboostedtreeclassifier/resume(_:).md)
- [restoreTrainingSession(sessionParameters:)](createml/mlboostedtreeclassifier/restoretrainingsession(sessionparameters:).md)

### Creating a boosted tree classifier from a checkpoint

- [init(checkpoint:)](createml/mlboostedtreeclassifier/init(checkpoint:).md)

### Training a boosted tree classifier synchronously

- [init(trainingData:targetColumn:featureColumns:parameters:)](createml/mlboostedtreeclassifier/init(trainingdata:targetcolumn:featurecolumns:parameters:).md)
- [targetColumn](createml/mlboostedtreeclassifier/targetcolumn.md)
- [featureColumns](createml/mlboostedtreeclassifier/featurecolumns.md)

### Evaluating a boosted tree classifier

- [evaluation(on:)](createml/mlboostedtreeclassifier/evaluation(on:).md)
- [trainingMetrics](createml/mlboostedtreeclassifier/trainingmetrics.md)
- [validationMetrics](createml/mlboostedtreeclassifier/validationmetrics.md)

### Testing a boosted tree classifier

- [predictions(from:)](createml/mlboostedtreeclassifier/predictions(from:).md)

### Saving a boosted tree classifier

- [write(to:metadata:)](createml/mlboostedtreeclassifier/write(to:metadata:).md)
- [write(toFile:metadata:)](createml/mlboostedtreeclassifier/write(tofile:metadata:).md)

### Inspecting a boosted tree classifier

- [model](createml/mlboostedtreeclassifier/model.md)
- [MLBoostedTreeClassifier.ModelParameters](createml/mlboostedtreeclassifier/modelparameters-swift.struct.md)
- [modelParameters](createml/mlboostedtreeclassifier/modelparameters-swift.property.md)

### Describing a boosted tree classifier

- [description](createml/mlboostedtreeclassifier/description.md)
- [debugDescription](createml/mlboostedtreeclassifier/debugdescription.md)
- [playgroundDescription](createml/mlboostedtreeclassifier/playgrounddescription.md)

### Default Implementations

- [CustomDebugStringConvertible Implementations](createml/mlboostedtreeclassifier/customdebugstringconvertible-implementations.md)
- [CustomPlaygroundDisplayConvertible Implementations](createml/mlboostedtreeclassifier/customplaygrounddisplayconvertible-implementations.md)
- [CustomStringConvertible Implementations](createml/mlboostedtreeclassifier/customstringconvertible-implementations.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomPlaygroundDisplayConvertible](swift/customplaygrounddisplayconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Escapable](swift/escapable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Supporting classifier types

- [MLDecisionTreeClassifier](createml/mldecisiontreeclassifier.md)
- [MLRandomForestClassifier](createml/mlrandomforestclassifier.md)
- [MLLogisticRegressionClassifier](createml/mllogisticregressionclassifier.md)
- [MLSupportVectorClassifier](createml/mlsupportvectorclassifier.md)
