- Define the Network Architecture: You will need to define a network with two regression outputs. The last layers of the network should branch into two separate paths, each ending with a regression layer.
- Specify the Training Options: When you train the model, you will need to use a custom training loop or specify custom training options to handle the multiple outputs. To read more about custom tranining loops, you can refer the following documentation: https://www.mathworks.com/help/deeplearning/deep-learning-custom-training-loops.html
- Train the Network: Train the network with the noisy signals as inputs and the two targets (clean signals and noise signals). The loss function should be designed to minimize the error for both outputs.
How to define 'layers' for single to multiple sequence regression using lstm network?
2 次查看(过去 30 天)
显示 更早的评论
Hello
I was trying to modify the example:
for denoising my signals. The difference is that rather than just getting the denoised signal I am interested in getting both the denoised signal and the extracted noise. I thought that in addition to noisy and clean signals, I need to add the noise signal to my input datastore. I am not so sure about that and also I don't know how to define the layers in this case. Can anyone please help?
Thanks in advance.
0 个评论
采纳的回答
Akshat Dalal
2023-12-15
编辑:Akshat Dalal
2023-12-18
Hi Nasrin,
I understand that you want to create a deep learning model wherein you can clean a noisy signal and also get the noise that was added to the clean signal.
You would have to to train a network that takes the noisy signal as input and outputs two things: the denoised signal and the noise signal itself. To do this, you will need to modify the architecture of the neural network to have two output layers: one for the denoised signal and another for the noise. You can follow the below steps to achieve this:
To read more about training deep learning networks with multiple outputs, you could refer the following documentation: https://in.mathworks.com/help/deeplearning/ug/multiple-input-and-multiple-output-networks.html
Hope this helps!
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 EEG/MEG/ECoG 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!