Contents

MLSoundClassifier.ModelParameters.ClassifierType.multilayerPerceptron(layerSizes:)

A neural network model that uses three or more layers to classify an input into a category.

Declaration

case multilayerPerceptron(layerSizes: [Int])

Parameters

  • layerSizes:

    An array of positive integers. Each element represents the number of units for that hidden layer.

Discussion

The neural network has a minimum of three layers:

  • An input layer

  • One or more hidden layers

  • An output layer

The number of integers in your layerSizes array determines the number of hidden layers in the neural network. Each integer in the array determines the size of that hidden layer.

See Also

Designating an algorithm’s classifier