init(validationData:batchSize:maxIterations:)
Creates a model parameters instance for an object-detector training session set to use the full network algorithm.
Declaration
init(validationData: MLObjectDetector.DataSource, batchSize: Int? = nil, maxIterations: Int? = nil) throwsParameters
- validationData:
An Validationdata instance that contains your validation dataset.
- batchSize:
The number of images the object detector uses for each training iteration. If you don’t have a preference, set this parameter to
nilto tell Create ML to use an appropriate value when it trains the model. - maxIterations:
The largest number of training iterations the object detector can use. If you don’t have a preference, set this parameter to
nilto tell Create ML to use an appropriate value when it trains the model.