Use a trained NARX network on new input data.

3 ビュー (過去 30 日間)
Gustavo Santi
Gustavo Santi 2018 年 12 月 11 日
回答済み: Akshat 2024 年 11 月 12 日 20:45
Hi, I trained a NARX network and now I am trying to use the trained network on new input data to predict the result, but I can't make it work using the "net" command. Anyone has an ideia about what I have to do?

回答 (1 件)

Akshat
Akshat 2024 年 11 月 12 日 20:45
In order to make predictions using a NARX network, you need to prepare delayed inputs.
Please refer to the following official documentation link for more information:
You can use "preparets" function for preparing data with appropriate delays. Here is the documentation link for the same:
Here is a sample code snippet for your reference:
newInputData = ...;
newTargetData = []; % Use empty if you don't have target data
[Xs, Xi, Ai, Ts] = preparets(net, newInputData, {}, newTargetData);
predictedOutput = net(Xs, Xi, Ai);
% Display the predicted output
disp('Predicted Output:');
disp(predictedOutput);
Hope this helps!

カテゴリ

Help Center および File ExchangeSequence and Numeric Feature Data Workflows についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by