How does the “ trainNetwork” function define input training data?

2 次查看(过去 30 天)
No matter how I change the input data format of image3dInputLayer, custom datastore, table, etc., can't be effectively trained?
load a.mat
layers = [
image3dInputLayer([64 64 64 4],"Name","image3dinput")
convolution3dLayer([11 11 7],96,"Name","conv3d","BiasLearnRateFactor",2,"Padding",[1 1 1;1 1 1],"Stride",[4 4 7])
reluLayer("Name","relu1")
crossChannelNormalizationLayer(5,"Name","norm1","K",1)
averagePooling3dLayer([3 3 1],"Name","avgpool3d","Stride",[2 2 1])
fullyConnectedLayer(8,"Name","fc")
softmaxLayer("Name","softmax")
classificationLayer("Name","classoutput")];
options = trainingOptions('sgdm', ...
'MiniBatchSize',2, ...
'MaxEpochs',2, ...
'InitialLearnRate',3e-4, ...
'Shuffle','every-epoch', ...
'Plots','training-progress');
[net, tr] = trainNetwork(a,layers,options);
my a.mat is like this:
a.png
错误使用 trainNetwork (line 165)
无法读取文件 '1'。没有此类文件或目录。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by