MATLAB Answers

combining two neural networks (net1 is trained & net2 is untrained) in one bigger network

조회 수: 35(최근 30일)
Abdelwahab Afifi
Abdelwahab Afifi 10 Jan 2020
댓글: Xin Yee Tai 14 Jul 2020
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.
  댓글 수: 1
Xin Yee Tai
Xin Yee Tai 14 Jul 2020
Could you please share the code to build the neural network on the last photo? Thank you.

댓글을 달려면 로그인하십시오.

채택된 답변

Hiro 10 Jan 2020

추가 답변(1개)

Greg Heath
Greg Heath 12 Jan 2020
1. Save the outputs of net1 in a file
2. Use the file to train net2
  댓글 수: 2
Abdelwahab Afifi
Abdelwahab Afifi 20 Jun 2020
Greg Heath,
more clarification please. I wanna train the bigger networok which combined of (untrained net2 + trained net1)

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by