Filter löschen
Filter löschen

How to use trained net with 3 inputs and 1 target

1 Ansicht (letzte 30 Tage)
Emirhan Solmaz
Emirhan Solmaz am 6 Jan. 2021
Beantwortet: Emirhan Solmaz am 24 Jan. 2021
Hi. i trained a time series neural network with 3 input column (3x500) and 1 target column (1x500) datas and with 10 neurons and 2 delay. Then saved it as "net"file. Now i want to use it with another set of example data (3x200) to get output data (1x200) ,thus, i can compare it with the actual data (1x200).
I used "sim(net,ExData)" command but i got "Number of inputs does not match net.numInputs." error.
Then i searched in forum and tried various things including transpose of ExData. I couldnt find a solution via looking to the help section of Matlab for different commands as well. So can you help me on this please.

Akzeptierte Antwort

Emirhan Solmaz
Emirhan Solmaz am 24 Jan. 2021
a couple of days later, i found the solution which is very very easy. just delete the first rows as much as the delays you give. for me it was 2 rows since the delay was 2. btw, dont forget transpose.

Weitere Antworten (0)

Kategorien

Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by