Online/Incremental Learning (Neural Network) with S-Function

4 Ansichten (letzte 30 Tage)
Marvin Klatte
Marvin Klatte am 16 Dez. 2020
Beantwortet: Harsh am 19 Jun. 2025
I would like to train/adapt my neural network online/incremental. I'm using S-Function in Simulink to realize.
While running the Simulink simulation i got an error in flag=3(output). "adapt" is a undefined function. Same error for function "train".
An error occurred while running the simulation and the simulation was terminated
Caused by:
  • Error in 'Sim_RNNOnline/S-Function' while executing MATLAB S-function 'RNNOnline', flag = 3 (output), at time 0.0.
  • Undefined function 'adapt' for input arguments of type 'double'.
Do I need any Toolbox for S-Function to use "train" or "adapt"? Is there any other option to "adapt" my neural Network incremental/online?
  1 Kommentar
Muhammad Faisal Khalid
Muhammad Faisal Khalid am 11 Nov. 2021
hi.
I have question.
if i have my trained neural network in mat file. how can i use it in my simulink model? using matlab function of S function.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Harsh
Harsh am 19 Jun. 2025
The "adapt" and "train" function are part of "Deep Learning Toolbox" so you need to have that to use them inside a "S-Function". To check if you have the "Deep Learning Toolbox", run the following command in MATLAB Command Window
ver
I hope this resolves your query!

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by