Use trainNetwork funcion to train a feedforwad net

2 views (last 30 days)
Does the trainNetwork function can only be used to train CNNs and LSTMs as written in the documentation or can I use it to train a feedforwad net as well?
My idea was to create the ImageInputLayer the size of my feature vector and then use a couple of fullyConnectedLayers followed by RELULayers and dropoutLayers. The reason to want to use this intead of the regular feedforwardnet and train functions are the possibilities to use ReLU and dropout, more flexibility to choose the training parameters, and the usage of the ImageDatastore structure.
Will this method give me similar results to when feedforward and train are used or the way the trainNetwork function is implemented is not recommended for feedforward-only training?

Answers (1)

Saeed Mohammadi
Saeed Mohammadi on 4 Sep 2019
Hi,
I think this is a very interesting question. Can someone comment on this?
Thanks.
  1 Comment
Raphael Ruschel
Raphael Ruschel on 6 Sep 2019
I tried using it as described on the question and it achieved good results, so I think it is not a problem!

Sign in to comment.

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!