Products & Services Industries Academia Support User Community Company


newlind

Purpose

Design linear layer

Syntax

Description

newlind(P,T,Pi) takes these input arguments,

P
R x Q matrix of Q input vectors
T
S x Q matrix of Q target class vectors
Pi
1 x ID cell array of initial input delay states

where each element Pi{i,k} is an Ri x Q matrix, and the default = [],

and returns a linear layer designed to output T (with minimum sum square error) given input P.

newlind(P,T,Pi) can also solve for linear networks with input delays and multiple inputs and layers by supplying input and target data in cell array form:

P
Ni x TS cell array
Each element P{i,ts} is an Ri x Q input matrix
T
Nt x TS cell array
Each element P{i,ts} is a Vi x Q matrix
Pi
Ni x ID cell array
Each element Pi{i,k} is an Ri x Q matrix, default = []

and returns a linear network with ID input delays, Ni network inputs, and Nl layers, designed to output T (with minimum sum square error) given input P.

Examples

You want a linear layer that outputs T given P for the following definitions:

Use newlind to design such a network and check its response.

You want another linear layer that outputs the sequence T given the sequence P and two initial input delay states Pi.

You want a linear network with two outputs Y1 and Y2 that generate sequences T1 and T2, given the sequences P1 and P2, with three initial input delay states Pi1 for input 1 and three initial delays states Pi2 for input 2.

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:

See Also

sim, newlin


 Provide feedback about this page 

Previous page newlin newlrn 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