Main Content

getwb

Get network weight and bias values as single vector

Syntax

getwb(net)

Description

getwb(net) returns a neural network’s weight and bias values as a single vector.

Examples

Here a feedforward network is trained to fit some data, then its bias and weight values are formed into a vector.

[x,t] = simplefit_dataset;
net = feedforwardnet(20);
net = train(net,x,t);
wb = getwb(net)

Version History

Introduced in R2010b

See Also

| |