Error using feedforwardnet (line 72) FCN does not return an info object.
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello,
With this code:
% Configuration:
alg1 = 'nnd9mc';% First training algorithm to use
H = 50;% Number of neurons in the hidden layer
delta_epochs = [1,14,985];% Number of epochs to train in each step
epochs = cumsum(delta_epochs);
%generation of examples and targets
dx=0.05;% Decrease this value to increase the number of data points
x=0:dx:3*pi;
y=sin(x.^2);
sigma=0.2;% Standard deviation of added noise
yn=y+sigma*randn(size(y));% Add gaussian noise
t=yn;% Targets. Change to yn to train on noisy data
plot(X,t);
hold on;
net1=feedforwardnet(H,alg1);% Define the feedfoward net (hidden layers)
I have got the following error:
Error using feedforwardnet (line 72)
FCN does not return an info object.
I executed theses lines in the command window (advice from another post):
rehash toolboxcache
restoredefaultpath
But I still get the error, any one know where it comes from ?
Regards
댓글 수: 0
답변 (1개)
Jan
2021년 3월 20일
According to the documenation: https://www.mathworks.com/help/deeplearning/ref/feedforwardnet.html#mw_85a847e7-13dd-45fd-b7b9-06068e8f5937 the char vector 'nnd9mc' is not accepted as trainFcn.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 PHY Components에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!