Custom loss function with LSTM for Physics Informed Machine Learning
30 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Shubham Baisthakur
am 3 Mai 2023
Kommentiert: Shubham Baisthakur
am 15 Jun. 2023
I want to train a LSTM model to prdict time history response of a dynamical system. I have defined a physics based loss function in a matlab code (.m file). I would like to include this function as the loss function in model training along with the standard RMSE. Is this possible using Matlab's Deep Learning Toolbox?
0 Kommentare
Akzeptierte Antwort
Ranjeet
am 8 Mai 2023
To use a custom loss function, a custom layer can be created by following the documentation below, it has templates for defining an intermediate and final layer as well.
An LSTM specific example can be referred from the following answer and adapted for your use case:
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Build Deep Neural Networks 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!