Neural network for regression that has mulitple outputs of different order

8 ビュー (過去 30 日間)
byungchan
byungchan 2022 年 11 月 13 日
コメント済み: byungchan 2022 年 11 月 25 日
Hello, I am asking to see if there is any advice to create the neural net that has multiple outputs (for regression) with differnt order(say one of output has order of 10^-5, while the other output has order of 10^5).
Is there any tips for this? Shall I have to make seperate neural nets for each of those outputs?
Thank you very much!

採用された回答

Varun Sai Alaparthi
Varun Sai Alaparthi 2022 年 11 月 16 日
Hello byungchan,
I understand that you want to effectively train a regression model with multiple output heads and the outputs are of different orders.
My advice would be to use weights while adding L2 regression losses. This would normalise the magnitude effect caused due to difference in order.
For example:
Loss = Loss1*W1+Loss2*W2;
% If Loss1 s order > Loss2’s order W1<W2 (example: W1 = 0.001, W2=1)
Here W1 and W2 can be treated as hyper parameters and can be tuned accordingly for effective training.
Please refer to the following link for implementing custom training loop and loss function with weights for multiple outputs:
Please try this and reach out to us for any further issues.
Sincerely
Varun
  1 件のコメント
byungchan
byungchan 2022 年 11 月 25 日
Thank you so very much for your kind answers, Varun,
I am trying to implement lstm while using mae instead of mse as a loss function.
While doing so it says dlgradient does not support the lstm.
Is there any ways I could detour this matter?
Again, thank you very much.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLinear Regression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by