combining two neural networks (net1 is trained & net2 is untrained) in one bigger network
27 views (last 30 days)
Show older comments
I have two shallow neural network models net1, net2.
I have a trained net1. Then I need to connect a net2 to a net1. Hence I treat the combined (net2+net1) as one large net and then train the big net . However, during the second training phase, we only need to update the weights corresponding to net2 (and keep net1 weights fixed). Is it possible in MATLAB? any suggested links or articles to perform this part.

2 Comments
Russdsp
on 11 Jun 2021
Yes please share code. the green box in the middle doesnt seem like a layer- how is that there?
Accepted Answer
More Answers (1)
Greg Heath
on 12 Jan 2020
Just
1. Save the outputs of net1 in a file
2. Use the file to train net2
Greg
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!