One Logo Pool Ball
CreateMLComponents · IOS API REFERENCE

BoostedTreeConfiguration

struct · iOS 16.0+ · SDK 27.1

struct BoostedTreeConfiguration

A boosted tree configuration.

Members (23)

get · iOS 17.0+

parallelTreeCount

TypeScript
get parallelTreeCount(): number
Swift declaration
var parallelTreeCount: Int

The number of parallel trees constructed during each iteration. Use a value greater than one to train a boosted random forest.

set · iOS 17.0+

parallelTreeCount

TypeScript
set parallelTreeCount(value: number)
Swift declaration
var parallelTreeCount: Int

The number of parallel trees constructed during each iteration. Use a value greater than one to train a boosted random forest.

get · iOS 16.0+

randomSeed

TypeScript
get randomSeed(): number
Swift declaration
var randomSeed: Int

A seed to generate reproducible results from random operations such as column and row subsampling.

set · iOS 16.0+

randomSeed

TypeScript
set randomSeed(value: number)
Swift declaration
var randomSeed: Int

A seed to generate reproducible results from random operations such as column and row subsampling.

get · iOS 17.0+

learningRate

TypeScript
get learningRate(): number
Swift declaration
var learningRate: Double { get set }

The learning rate. The learning rate controls the step size shrinkage. A smaller learning rate makes the learning process more conservative. Must be in the range [0, 1]. Defaults to 0.3.

set · iOS 17.0+

learningRate

TypeScript
set learningRate(value: number)
Swift declaration
var learningRate: Double { get set }

The learning rate. The learning rate controls the step size shrinkage. A smaller learning rate makes the learning process more conservative. Must be in the range [0, 1]. Defaults to 0.3.

get · iOS 16.0+

maximumDepth

TypeScript
get maximumDepth(): number
Swift declaration
var maximumDepth: Int

Maximum tree depth. For best results use a value between 4 and 8. Must be at least 1. Defaults to 6.

set · iOS 16.0+

maximumDepth

TypeScript
set maximumDepth(value: number)
Swift declaration
var maximumDepth: Int

Maximum tree depth. For best results use a value between 4 and 8. Must be at least 1. Defaults to 6.

get · iOS 16.0+

rowSubsample

TypeScript
get rowSubsample(): number
Swift declaration
var rowSubsample: Double

Subsample ratio of the training set in each iteration of tree construction. This is called the bagging trick and can usually help prevent overfitting. Setting this to a value of 0.5 results in the model randomly sampling half of the examples (rows) to grow each tree. Must be in the range (0, 1).

set · iOS 16.0+

rowSubsample

TypeScript
set rowSubsample(value: number)
Swift declaration
var rowSubsample: Double

Subsample ratio of the training set in each iteration of tree construction. This is called the bagging trick and can usually help prevent overfitting. Setting this to a value of 0.5 results in the model randomly sampling half of the examples (rows) to grow each tree. Must be in the range (0, 1).

get · iOS 16.0+

columnSubsample

TypeScript
get columnSubsample(): number
Swift declaration
var columnSubsample: Double

Subsample ratio of the columns in each iteration of tree construction. Like row subsample, this can also help prevent model overfitting. Setting this to a value of 0.5 results in the model randomly sampling half of the columns to grow each tree. Must be in the range (0, 1).

set · iOS 16.0+

columnSubsample

TypeScript
set columnSubsample(value: number)
Swift declaration
var columnSubsample: Double

Subsample ratio of the columns in each iteration of tree construction. Like row subsample, this can also help prevent model overfitting. Setting this to a value of 0.5 results in the model randomly sampling half of the columns to grow each tree. Must be in the range (0, 1).

get · iOS 16.0+

maximumIterations

TypeScript
get maximumIterations(): number
Swift declaration
var maximumIterations: Int

Maximum number of iterations.

set · iOS 16.0+

maximumIterations

TypeScript
set maximumIterations(value: number)
Swift declaration
var maximumIterations: Int

Maximum number of iterations.

get · iOS 16.0+

minimumChildWeight

TypeScript
get minimumChildWeight(): number
Swift declaration
var minimumChildWeight: Double

The minimum weight of each leaf node. Larger values result in more conservative tree learning and help prevent overfitting. If the tree learning algorithm results in a leaf node with the sum of instance weights less than this value, tree building will terminate. Defaults to 0.1

set · iOS 16.0+

minimumChildWeight

TypeScript
set minimumChildWeight(value: number)
Swift declaration
var minimumChildWeight: Double

The minimum weight of each leaf node. Larger values result in more conservative tree learning and help prevent overfitting. If the tree learning algorithm results in a leaf node with the sum of instance weights less than this value, tree building will terminate. Defaults to 0.1

get · iOS 16.0+

minimumLossReduction

TypeScript
get minimumLossReduction(): number
Swift declaration
var minimumLossReduction: Double

Minimum loss reduction required to further split a node during the tree learning phase. Larger values can help prevent overfitting by avoiding splits that do not sufficiently reduce the loss function. Defaults to 0.

set · iOS 16.0+

minimumLossReduction

TypeScript
set minimumLossReduction(value: number)
Swift declaration
var minimumLossReduction: Double

Minimum loss reduction required to further split a node during the tree learning phase. Larger values can help prevent overfitting by avoiding splits that do not sufficiently reduce the loss function. Defaults to 0.

get · iOS 16.0+

earlyStoppingIterationCount

TypeScript
get earlyStoppingIterationCount(): (number) | null
Swift declaration
var earlyStoppingIterationCount: Int?

Stops training after this number of iterations where the validation metric does not improve. Validation data must be specified for an early stop.

set · iOS 16.0+

earlyStoppingIterationCount

TypeScript
set earlyStoppingIterationCount(value: (number) | null)
Swift declaration
var earlyStoppingIterationCount: Int?

Stops training after this number of iterations where the validation metric does not improve. Validation data must be specified for an early stop.

get · iOS 16.0+ · Deprecated in iOS 17.0

stepSize

TypeScript
get stepSize(): number
Swift declaration
var stepSize: Double { get set }

The step size shrinking.

set · iOS 16.0+ · Deprecated in iOS 17.0

stepSize

TypeScript
set stepSize(value: number)
Swift declaration
var stepSize: Double { get set }

The step size shrinking.

init · iOS 16.0+

init

TypeScript
static init(): BoostedTreeConfiguration
Swift declaration
init()

Creates a default boosted tree configuration.

Skipped declarations

No declarations were skipped in this snapshot.

All CreateMLComponents types →