Connections between layers removed once call to train is made.
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Vishal Chaudhary
2018 年 9 月 28 日
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 件のコメント
Greg Heath
2018 年 9 月 29 日
In short:
The original post did not use the same (x,y) in configure and train
Hope this elps.
Greg
参考
カテゴリ
Help Center および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!