Design a linear layer
Syntax
net = newlind(P,T)
new = newlind
Description
newlind(P,T)
takes two input arguments,
P - R
x Q
matrix of Q
input vectors.
T - S
x Q
matrix of Q
target class vectors.
and returns a linear layer designed to output T
(with minimum sum square error) given input P
.
Call newlind
without input arguments to define the network's attributes in a dialog window.
Examples
We would like a linear layer that outputs T
given P
for the following definitions.
P = [1 2 3];
T = [2.0 4.1 5.9];
Here we use newlind
to design such a network and check its response.
net = newlind(P,T);
Y = sim(net,P)
Algorithm
newlind
calculates weight W
and bias B
values for a linear layer from inputs P
and targets T
by solving this linear equation in the least squares sense:
[W b] * [P; ones] = T
See Also
sim
,
newlin
[ Previous | Help Desk | Next ]