Initializer

init(validationData:maxIterations:l1Penalty:l2Penalty:stepSize:convergenceThreshold:featureRescaling:)

Creates a new set of parameters.

Declaration

init(validationData: MLDataTable?, maxIterations: Int = 10, l1Penalty: Double = 0, l2Penalty: Double = 0.01, stepSize: Double = 1.0, convergenceThreshold: Double = 0.01, featureRescaling: Bool = true)

Parameters

validationData

The dataset used to monitor how well the model is generalizing.

The default value is `nil` which will use an automatically sampled validation set.

maxIterations

l1Penalty

l2Penalty

stepSize

convergenceThreshold

featureRescaling