Error forming mini-batch of targets for network output "fc". Data interpreted with format "BC".
조회 수: 27 (최근 30일)
이전 댓글 표시
I worked on time series forecasting supportte dby Matlab. However, i first tried the sample provided by Matlab. But I got the error of Error forming mini-batch of targets for network output "fc", Data interpreted with format "BC" when I used training function -- trainnet(XTrain, TTrain, net_1,"mse",options). I appreciate for any suggestion or comment.
답변 (1개)
Marcel Kreuzberg
2025년 2월 7일
Hi, in the Deep Network Designer set OutputMode for lstmLayer to sequence.
댓글 수: 4
Marcel Kreuzberg
2025년 2월 14일
편집: Marcel Kreuzberg
2025년 2월 14일
Hi Dan,
with your code I get some different error, but changing the line
XData{n} = X(1:end-1,:);
the code is running without error on my MATLAB R2024b System.
As I tried the matlab example time-series-forecasting-using-deep-network-designer the first time I also got the Error:
Error forming mini-batch of targets for network output "fc". Data interpreted with format "BC".
During checking the problem I observed that the analyse network output was different then the described one:

In the Activations TAB the "x 1(T)" are missing for the layer 2 to 4. But after change the OutPutMode of the lstm layer to sequence

the output of the analyze fit now the one in the sample an the code was running fine.
regards
Marcel
참고 항목
카테고리
Help Center 및 File Exchange에서 Built-In Training에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!