Info

This question is closed. Reopen it to edit or answer.

trainNetwork - protect centain layers from changing

3 views (last 30 days)
Samuel Ubrezi
Samuel Ubrezi on 26 Jan 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
Hi,
I am trying to do train a neural net with my own layers but I dont want to change weights and biases in certain layers.
algorithm looks like this:
train Net1 with Layers1
train Net2 with Layers = [Layers2 Layers1]
My problem is that I dont want to anyhow alter weights and biases in Layers1, is there any way to do this?

Answers (1)

BERGHOUT Tarek
BERGHOUT Tarek on 4 Feb 2019
yes there is a pssibility take this codes and change the training lope, when you find ''for i=1: nember of layes '' change it to for " i=2:nember of layes ", good luck.

Community Treasure Hunt

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

Start Hunting!