randomSeed
TypeScriptget randomSeed(): (number) | nullSwift declarationvar randomSeed: Int?A seed to generate reproducible results from random operations.
struct · iOS 18.0+ · SDK 27.1
struct LinearTimeSeriesForecasterConfigurationThe configuration for a linear time-series forecaster.
get randomSeed(): (number) | nullSwift declarationvar randomSeed: Int?A seed to generate reproducible results from random operations.
set randomSeed(value: (number) | null)Swift declarationvar randomSeed: Int?A seed to generate reproducible results from random operations.
get learningRate(): numberSwift declarationvar learningRate: FloatThe starting learning rate. Defaults to 0.005.
set learningRate(value: number)Swift declarationvar learningRate: FloatThe starting learning rate. Defaults to 0.005.
static init(inputWindowSize: number, forecastWindowSize: number): LinearTimeSeriesForecasterConfigurationSwift declarationinit(inputWindowSize: Int, forecastWindowSize: Int)Creates a configuration. - Parameters: - inputWindowSize: The number of input samples. - forecastWindowSize: The number prediction samples.
get inputWindowSize(): numberSwift declarationvar inputWindowSize: IntThe number of input samples.
set inputWindowSize(value: number)Swift declarationvar inputWindowSize: IntThe number of input samples.
get forecastWindowSize(): numberSwift declarationvar forecastWindowSize: IntThe number of predicted samples.
set forecastWindowSize(value: number)Swift declarationvar forecastWindowSize: IntThe number of predicted samples.
get maximumIterationCount(): numberSwift declarationvar maximumIterationCount: IntThe maximum number of allowed passes through the data. More passes over the data can result in a more accurately trained model. Consider increasing this if the training accuracy is low. Defaults to 25. - 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 maximumIterationCount(value: number)Swift declarationvar maximumIterationCount: IntThe maximum number of allowed passes through the data. More passes over the data can result in a more accurately trained model. Consider increasing this if the training accuracy is low. Defaults to 25. - 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 earlyStoppingTolerance(): numberSwift declarationvar earlyStoppingTolerance: FloatThe 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 earlyStoppingTolerance(value: number)Swift declarationvar earlyStoppingTolerance: FloatThe 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 earlyStoppingIterationCount(): numberSwift declarationvar earlyStoppingIterationCount: IntThe 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 error decreases by at least `convergenceThreshold`. - Note: Early stopping only happens when using the `fitted` method with validation data.
set earlyStoppingIterationCount(value: number)Swift declarationvar earlyStoppingIterationCount: IntThe 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 error decreases by at least `convergenceThreshold`. - Note: Early stopping only happens when using the `fitted` method with validation data.
get batchSize(): numberSwift declarationvar batchSize: IntThe number of examples in each training batch. - Note: This parameter is only used by the `fitted` method.
set batchSize(value: number)Swift declarationvar batchSize: IntThe number of examples in each training batch. - Note: This parameter is only used by the `fitted` method.
No declarations were skipped in this snapshot.