Products & Services Solutions Academia Support User Community Company


setx

Purpose

Set all network weight and bias values with single vector

Syntax

Description

This function sets a network's weight and biases to a vector of values.

net = setx(net,X) takes the following inputs:

net
Neural network
X
Vector of weight and bias values

Examples

Here you create a network with a two-element input and one layer of three neurons.

The network has six weights (3 neurons * 2 input elements) and three biases (3 neurons) for a total of nine weight and bias values. You can set them to random values as follows:

You can then view the weight and bias values as follows:

See Also

getx


 Provide feedback about this page 

Previous page seq2con sim Next page

Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS