Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Create fully connected layer

`fullconnectlayer = fullyConnectedLayer(outputSize)`

`fullconnectlayer = fullyConnectedLayer(outputSize,Name,Value)`

returns
a fully connected layer, in which the software multiplies the input
by a weight matrix and then
adds a bias vector.`fullconnectlayer`

= fullyConnectedLayer(`outputSize`

)

returns
a fully connected layer with additional options specified by one or
more `fullconnectlayer`

= fullyConnectedLayer(`outputSize`

,`Name,Value`

)`Name,Value`

pair arguments.

The default for the initial weights is a Gaussian distribution with mean 0 and standard deviation 0.01. The default for the initial bias is 0. You can manually change the initialization for the weights and bias. See Specify Initial Weight and Biases in Fully Connected Layer.

Was this topic helpful?