where is regressionLayer in 2024a deep learningtoolbox
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
请问在2024a版本中,深度网络设计器的regressionLayer等以前常用的输出层到哪里去了。如果没有的话,相关功能应该如何实现。
0 Kommentare
Antworten (1)
Abhinav Aravindan
am 23 Apr. 2024
Bearbeitet: Abhinav Aravindan
am 23 Apr. 2024
It is my understanding that you are having difficulty in finding the “regressionLayer” in the Deep Network Designer of MATLAB R2024a which is used to compute the half-mean-squared-error loss. “regressionLayer” is no longer recommended to use in R2024a. The "trainnet" function is recommended to be used instead.
For implementing “regressionLayer” using the Deep Network Designer, after designing the network in the App, the network can be exported to the workspace and the “trainnet” function with the “lossFcn” parameter set to “mse” can be utilized as follows where "net" is the exported network from Deep Network Designer App.
netTrained = trainnet(features,targets,net,"mse",options);
Please refer to the documentation for more detail.
0 Kommentare
Siehe auch
Kategorien
Mehr zu 使用 App 设计工具开发 App 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!