What is the difference between net.inputWeights{i,j}=2 and net.inputW​eights{i,j​}.delays=[​1,2];

조회 수: 21 (최근 30일)
Hi there,
I want to implement a simple NARX model with input delay of lets say 2 time steps. I am confused about the meaning of net.inputWeights{i,j}=2 and net.inputWeights{i,j}.delays=[1,2]. They also apear different on the net viewer.

답변 (1개)

Shantanu Dixit
Shantanu Dixit 2024년 10월 29일 18:13
편집: Shantanu Dixit 2024년 10월 29일 18:23
Hi Emebet,
A Nonlinear Autoregressive with Exogenous Input (NARX) model uses past values of both the input signals and its own outputs to make predictions about future values.
  • The notation ''net.inputWeights{i,j}" refers to the weight matrix that connects the inputs to the neurons in layer i. The {i,j} notation specifies the connection from the j-th input to the i-th layer. For a NARX model with two time steps, you can have "net.inputWeights{1,1}" for the weight associated with the first delay and ''net.inputWeights{1,2}" for the weight related to the second delay. The statement ''net.inputWeights{i,j} = 2" is not a standard assignment; rather, these weights are learned during the model training process.
  • The property ''net.inputWeights{i,j}.delays = [1,2]" specifies which past time steps of the input signals are being utilized in the model. In this case, it indicates that the model incorporates values from one time step ago and two time steps ago. This allows the network to leverage historical data effectively, enhancing its predictive capabilities.
I hope this clears the query.
For more details refer to the MathWorks documentation on 'NARX': https://www.mathworks.com/help/deeplearning/ref/narxnet.html

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by