Effacer les filtres
Effacer les filtres

Connections between layers removed once call to train is made.

1 vue (au cours des 30 derniers jours)
Gideon Prior
Gideon Prior le 20 Sep 2018
Commenté : Greg Heath le 29 Sep 2018
Hello, I have seen a similar issue to this on these posts and none of the solutions seem to apply. I am setting up a basic neural network, and when I view the net all the layers are connected. I then call train, it returns almost instantly, and if I then view the network, the layer connections are removed. Some of the responses to similar posts were addressing the input and or output sequences being zero which mine are not. i have even tried to randomly generate data for debugging to make sure it wasnt a problem with my data and I still have the same issue. here is a sample with random data
sizeInput = 174; sizeOutput = 1; numDataPoints = 1000;
net = fitnet(10,'trainscg'); net = configure(net,ones(sizeInput,1),sizeOutput);
view(net); net = train(net,randn(sizeInput,numDataPoints),randn(sizeOutput,numDataPoints)); view(net);

Réponses (1)

Vishal Chaudhary
Vishal Chaudhary le 28 Sep 2018
The “configure” function takes input data and target data as input and configures the network. You can read about it in the documentation: https://www.mathworks.com/help/deeplearning/ref/configure.html?s_tid=doc_ta
So, you can use "configure" like:
sizeInput = 174; sizeOutput = 1; numDataPoints = 1000;
x= randn(sizeInput,numDataPoints); y= randn(sizeOutput,numDataPoints);
net = fitnet(10,'trainscg'); net = configure(net,x,y);
view(net);
net = train(net,x,y); view(net);
  1 commentaire
Greg Heath
Greg Heath le 29 Sep 2018
In short:
The original post did not use the same (x,y) in configure and train
Hope this elps.
Greg

Connectez-vous pour commenter.

Catégories

En savoir plus sur Deep Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by