Neural Network Toolbox | Search  Help Desk |
randtop | Examples See Also |
Random layer topology function
pos = randtop(dim1,dim2,...,dimN)
randtop
calculates the neuron positions for layers whose neurons are arranged in an N
dimensional random pattern.
randtop(dim1,dim2,...,dimN)
) takes N
arguments,
dimi -
Length of layer in dimension i
.
N
x S
matrix of N
coordinate vectors, where S
is the product of dim1
*dim2
*...*dimN
.
This code creates and displays a two-dimensional layer with 192 neurons arranged in a 16x12 random pattern.
pos = randtop(16,12); plotsom(pos)This code plots the connections between the same neurons, but shows each neuron at the location of its weight vector. The weights are generated randomly so that the layer is very unorganized, as is evident in the plot.
W = rands(192,2); plotsom(W,dist(pos))
gridtop
,
hextop