One Logo Pool Ball
CreateMLComponents · IOS API REFERENCE

FullyConnectedNetworkConfiguration

struct · iOS 16.0+ · SDK 27.1

struct FullyConnectedNetworkConfiguration

A fully connected network configuration.

Members (17)

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: Float

The learning rate. The learning rate controls how much the model changes when presented with new data. A high learning rate may overshoot when close to a solution, while a low learning rate my take too long to train a good model. Defaults to 0.001.

set · iOS 17.0+

learningRate

TypeScript
set learningRate(value: number)
Swift declaration
var learningRate: Float

The learning rate. The learning rate controls how much the model changes when presented with new data. A high learning rate may overshoot when close to a solution, while a low learning rate my take too long to train a good model. Defaults to 0.001.

get · iOS 16.0+

hiddenUnitCounts

TypeScript
get hiddenUnitCounts(): Array<number>
Swift declaration
var hiddenUnitCounts: [Int]

The number of neurons in each hidden layer. Defaults to a single hidden layer with 100 neurons.

set · iOS 16.0+

hiddenUnitCounts

TypeScript
set hiddenUnitCounts(value: Array<number>)
Swift declaration
var hiddenUnitCounts: [Int]

The number of neurons in each hidden layer. Defaults to a single hidden layer with 100 neurons.

get · iOS 16.0+

maximumIterations

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

The maximum number of iterations. More iterations will produce better models as long as there is no over-fitting. Over-fitting happens when the dropout probability is too low or there is not enough training data. - Note: This parameter is only used by the `fitted` method. When using the `update` method it's up to you to decide when to stop.

set · iOS 16.0+

maximumIterations

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

The maximum number of iterations. More iterations will produce better models as long as there is no over-fitting. Over-fitting happens when the dropout probability is too low or there is not enough training data. - Note: This parameter is only used by the `fitted` method. When using the `update` method it's up to you to decide when to stop.

get · iOS 17.0+

dropoutProbability

TypeScript
get dropoutProbability(): number
Swift declaration
var dropoutProbability: Float

The dropout probability. Dropout layers are placed after fully-connected layers to help prevent over-fitting. Defaults to 0.2.

set · iOS 17.0+

dropoutProbability

TypeScript
set dropoutProbability(value: number)
Swift declaration
var dropoutProbability: Float

The dropout probability. Dropout layers are placed after fully-connected layers to help prevent over-fitting. Defaults to 0.2.

get · iOS 16.0+

earlyStoppingTolerance

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

The early-stopping tolerance. The tolerance is used by the `fitted` method to decide when progress is no longer being made, in which case the training process will stop before the specified maximum number of iterations (known as early stopping). Significant progress happens when the validation loss decreases by at least the tolerance. Defaults to 0.01. - Note: Early stopping only happens when using the `fitted` method with validation data.

set · iOS 16.0+

earlyStoppingTolerance

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

The early-stopping tolerance. The tolerance is used by the `fitted` method to decide when progress is no longer being made, in which case the training process will stop before the specified maximum number of iterations (known as early stopping). Significant progress happens when the validation loss decreases by at least the tolerance. Defaults to 0.01. - Note: Early stopping only happens when using the `fitted` method with validation data.

get · iOS 17.0+

earlyStopIterationCount

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

The number of iterations to use when evaluating whether to stop early. The `fitted` method will stop if no significant progress is made for this many iterations. Significant progress happens when the validation loss decreases by at least `earlyStoppingTolerance`. Defaults to 10. - Note: Early stopping only happens when using the `fitted` method with validation data.

set · iOS 17.0+

earlyStopIterationCount

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

The number of iterations to use when evaluating whether to stop early. The `fitted` method will stop if no significant progress is made for this many iterations. Significant progress happens when the validation loss decreases by at least `earlyStoppingTolerance`. Defaults to 10. - Note: Early stopping only happens when using the `fitted` method with validation data.

get · iOS 16.0+

batchSize

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

The number of examples to use per mini-batch. A larger batch size will speed up computation when training, as long as the batch fits in memory. - Note: This parameter is only used by the `fitted` method. When using the `update` method it's up to you to do batching.

set · iOS 16.0+

batchSize

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

The number of examples to use per mini-batch. A larger batch size will speed up computation when training, as long as the batch fits in memory. - Note: This parameter is only used by the `fitted` method. When using the `update` method it's up to you to do batching.

init · iOS 16.0+

init

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

Creates a default fully-connected-network configuration.

Skipped declarations

No declarations were skipped in this snapshot.

All CreateMLComponents types →