linearlayer
Create linear layer
Description
takes a row vector of increasing 0 or positive delays and the Widrow-Hoff learning rate, and
returns a linear layer.layer
= linearlayer(inputDelays
,widrowHoffLR
)
Linear layers are single layers of linear neurons. They are static, with input delays of 0, or dynamic, with input delays greater than 0. You can train them on simple linear time series problems, but often are used adaptively to continue learning while deployed so they can adjust to changes in the relationship between inputs and outputs while being used.
If the learning rate is too small, learning happens very slowly. However, a greater
danger is that it might be too large and learning becomes unstable resulting in large
changes to weight vectors and errors increasing instead of decreasing. If a data set is
available which characterizes the relationship the layer is to learn, you can calculate the
maximum stable learning rate with the maxlinlr
function.
If you need a network to solve a nonlinear time series relationship, see timedelaynet
, narxnet
, and narnet
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2010b
See Also
preparets
| removedelay
| timedelaynet
| narnet
| narxnet