Connections between layers removed once call to train is made.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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);
0 comentarios
Respuestas (1)
Vishal Chaudhary
el 28 de Sept. de 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 comentario
Greg Heath
el 29 de Sept. de 2018
In short:
The original post did not use the same (x,y) in configure and train
Hope this elps.
Greg
Ver también
Categorías
Más información sobre Deep Learning Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!