| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Neural Network Toolbox |
| Contents | Index |
Symmetric random weight/bias initialization function
rands is a weight/bias initialization function.
| S |
Number of neurons |
| PR |
R x 2 matrix of R input ranges |
and returns an S-by-R weight matrix of random values between -1 and 1.
rands(S,R) returns an S-by-R matrix of random values. rands(S) returns an S-by-1 vector of random values.
Here three sets of random values are generated with rands.
To prepare the weights and the bias of layer i of a custom network to be initialized with rands,
To initialize the network, call init.
randnr, randnc, initwb, initlay, init
| Provide feedback about this page |
![]() | randnr | randtop | ![]() |

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 |